SubscribeResponses¶
-
ISubscription IEventResponder.SubscribeResponses(System.Collections.IEnumerable<IEventResponse> responses, EventResponseHandler handler)¶
Subscribes a callback to be executed when any of the selected responses occur.
- Parameters
responses – Subscribe to responses of this source.
handler – Delegate to be invoked when any of the selected responses occur.
- Returns
ISubscription – An ISubscription for the callback.
- Throws
NullArgumentException– Null reference was passed.InvalidArgumentException– Empty collection of responses specified.OutOfResourcesException– No resources available to subscribe callback.CommunicationErrorException– Protocol error.ConnectionLostException– Connection to controller lost.RebootedException– Controller has been rebooted since this object reference was retrieved, invalidating this reference.System.ObjectDisposedException– Object is disposed (only applicable if entity is disposable).