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. |
handlerName | The handler name. |
TManager |
managerEventHandler | The Manager event handler. |
Returns
Type | Description |
---|---|
System. |
A System. |
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. |
handlerName | The handler name. |
Returns
Type | Description |
---|---|
System. |
A System. |
Type Parameters
Name | Description |
---|---|
TManagerEvent | The Manager event contract type. |