Interface IManagerSubscriptionService
Provides the capability to subscribe to Manager events.
Namespace: Copper.Conventions.Method.Client.V1.Interface
Assembly: Copper.Conventions.Method.Client.dll
Syntax
public interface IManagerSubscriptionService : IDisposable
Methods
View SourceSubscribe<TManagerEvent>(String, TManagerEvent)
Subscribes a Manager event handler.
Declaration
Task Subscribe<TManagerEvent>(string handlerName, TManagerEvent managerEventHandler)
where TManagerEvent : class
Parameters
Type | Name | Description |
---|---|---|
System.String | handlerName | The handler name. |
TManagerEvent | managerEventHandler | The Manager event handler. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task that represents outstanding operation. |
Type Parameters
Name | Description |
---|---|
TManagerEvent | The Manager event contract type. |
Unsubscribe<TManagerEvent>(String)
Unsubscribes the specified Manager event handler.
Declaration
Task Unsubscribe<TManagerEvent>(string handlerName)
where TManagerEvent : class
Parameters
Type | Name | Description |
---|---|---|
System.String | handlerName | The handler name. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task that represents outstanding operation. |
Type Parameters
Name | Description |
---|---|
TManagerEvent | The Manager event contract type. |