Class EventsProxy
Defines a method for creating an events proxy for a given contract type.
Inheritance
System.Object
EventsProxy
Implements
System.IDisposable
Namespace: Copper.Eventing.Service
Assembly: Copper.Eventing.Service.dll
Syntax
public class EventsProxy : IDisposable
Constructors
View SourceEventsProxy(IEnumerable<IFrameworkSendInterceptor>, IEnumerable<ISendInterceptor>)
Initializes a new instance of the EventsProxy class.
Declaration
public EventsProxy(IEnumerable<IFrameworkSendInterceptor> frameworkSendInterceptors, IEnumerable<ISendInterceptor> sendInterceptors)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<IFrameworkSendInterceptor> | frameworkSendInterceptors | The framework send interceptors. |
System.Collections.Generic.IEnumerable<ISendInterceptor> | sendInterceptors | The send interceptors. |
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<TEvents>(EventPublisherBuilder)
Creates an events proxy for the given contract type.
Declaration
public TEvents For<TEvents>(EventPublisherBuilder eventPublisherBuilder)
where TEvents : class
Parameters
Type | Name | Description |
---|---|---|
EventPublisherBuilder | eventPublisherBuilder | The event publisher builder. |
Returns
Type | Description |
---|---|
TEvents | The service proxy. |
Type Parameters
Name | Description |
---|---|
TEvents | The contract type. |
For<TEvents>(IEventPublisherFactory)
Creates an events proxy for the given contract type.
Declaration
public TEvents For<TEvents>(IEventPublisherFactory eventPublisherFactory)
where TEvents : class
Parameters
Type | Name | Description |
---|---|---|
IEventPublisherFactory | eventPublisherFactory | The event publisher factory. |
Returns
Type | Description |
---|---|
TEvents | The service proxy. |
Type Parameters
Name | Description |
---|---|
TEvents | The contract type. |
Implements
System.IDisposable