Class ManagerEventsProxy
EventsProxy for Managers
Inheritance
System.Object
ManagerEventsProxy
Namespace: Copper.Conventions.Method.Service.V1
Assembly: Copper.Conventions.Method.Service.dll
Syntax
public class ManagerEventsProxy : IManagerEventsProxy, IDisposable
Constructors
View SourceManagerEventsProxy(EventsProxy, IManagerEventPublisherBuilderFactory)
Initializes a new instance of the ManagerEventsProxy class.
Declaration
public ManagerEventsProxy(EventsProxy eventsProxy, IManagerEventPublisherBuilderFactory managerEventPublisherBuilderFactory)
Parameters
Type | Name | Description |
---|---|---|
EventsProxy | eventsProxy | |
IManagerEventPublisherBuilderFactory | managerEventPublisherBuilderFactory |
Methods
View SourceDispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Dispose(Boolean)
Releases unmanaged and - optionally - managed resources.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
|
For<TManagerEvents>()
Creates a Manager events proxy for the given contract type.
Declaration
public TManagerEvents For<TManagerEvents>()
where TManagerEvents : class
Returns
Type | Description |
---|---|
TManagerEvents |
Type Parameters
Name | Description |
---|---|
TManagerEvents | The Manager events contract type. |
For<TManagerEvents>(Action<EventPublisherBuilder>)
Creates a Manager proxy for the given contract type.
Declaration
public TManagerEvents For<TManagerEvents>(Action<EventPublisherBuilder> eventPublisherBuilderConfigureDelegate)
where TManagerEvents : class
Parameters
Type | Name | Description |
---|---|---|
System.Action<EventPublisherBuilder> | eventPublisherBuilderConfigureDelegate | The event publisher builder configure delegate. |
Returns
Type | Description |
---|---|
TManagerEvents |
Type Parameters
Name | Description |
---|---|
TManagerEvents | The Manager events contract type. |
For<TManagerEvents>(Func<EventPublisherBuilder>)
Creates a Manager proxy for the given contract type.
Declaration
public TManagerEvents For<TManagerEvents>(Func<EventPublisherBuilder> eventPublisherBuilderFactory)
where TManagerEvents : class
Parameters
Type | Name | Description |
---|---|---|
System.Func<EventPublisherBuilder> | eventPublisherBuilderFactory | The event publisher builder factory. |
Returns
Type | Description |
---|---|
TManagerEvents |
Type Parameters
Name | Description |
---|---|
TManagerEvents | The Manager events contract type. |
Implements
System.IDisposable