Subscribers Property
Subscribers
Gets the list of subscribers.
Declaration
public IList<IHazelcastClientEventSubscriber> Subscribers { get; }
Property Value
IList<IHazelcastClientEventSubscriber> | The subscribers. |
Remarks
Subscribers can be added to the configuration programmatically via the AddSubscriber(IHazelcastClientEventSubscriber) method or any of its overloads. A subscriber is a class that implements IHazelcastClientEventSubscriber and subscribes the client to events as soon as the client is connected.
In a configuration file, they are defined as an array of injected types, for instance:
"subscribers": [
{
"typeName": "My.Subscriber, My.Dll"
},
{
"typeName": "My.OtherSubscriber, My.dll",
"args":
{
"foo": 33
}
}
]
where typeName
is the name of the type, and args
is an optional dictionary
of arguments for the type constructor.