Class GroupBase
Definition
- Namespace:
- Tizen.Applications.Cion
- Assembly:
- Tizen.Applications.Cion.dll
An abstract class to represent cion group.
C#Copypublic abstract class GroupBase : IDisposable
- Inheritance
-
objectGroupBase
- Implements
-
System.IDisposable
Constructors
Declaration
C#Copypublic GroupBase(string topicName, SecurityInfo security)
Parameters
Type | Name | Description |
---|---|---|
string | topicName | The topic of group. |
SecurityInfo | security | The security configuration. |
Remarks
The maximum length of topic name is 512.
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when the given topic name is too long. |
System.InvalidOperationException | Thrown when there is not enough memory to continue the execution of the method. |
Declaration
C#Copypublic GroupBase(string topicName)
Parameters
Type | Name | Description |
---|---|---|
string | topicName | The topic of group. |
Remarks
The maximum length of topic name is 512.
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when the given topic name is too long. |
System.InvalidOperationException | Thrown when there is not enough memory to continue the execution of the method. |
Properties
Declaration
C#Copypublic string Topic { get; }
Property Value
Type | Description |
---|---|
string |
Methods
Declaration
C#Copypublic void Dispose()
Dispose(bool)
Releases any unmanaged resources used by this object. Can also dispose any other disposable objects.
Declaration
C#Copyprotected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing | If true, disposes any disposable objects. If false, does not dispose disposable objects. |
Declaration
C#Copyprotected abstract void OnJoined(PeerInfo peerInfo)
Parameters
Type | Name | Description |
---|---|---|
PeerInfo | peerInfo | The peer info of joined in the current group. |
Declaration
C#Copyprotected abstract void OnLeft(PeerInfo peerInfo)
Parameters
Type | Name | Description |
---|---|---|
PeerInfo | peerInfo | The peer info of left from the current group. |
Declaration
C#Copyprotected abstract void OnPayloadReceived(Payload payload, PeerInfo peer)
Parameters
Type | Name | Description |
---|---|---|
Payload | payload | |
PeerInfo | peer |
Declaration
C#Copypublic void Publish(Payload payload)
Parameters
Type | Name | Description |
---|---|---|
Payload | payload | The payload to publish. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when the payload is invalid. |
System.InvalidOperationException | Thrown when failed to publish. |
Declaration
C#Copypublic void Subscribe()
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when failed to subscribe. |
System.UnauthorizedAccessException | Thrown when an application does not have the privilege to access this method. |
Declaration
C#Copypublic void Unsubscribe()