Class EventHandlerProxyFactory
Defines a method for creating an event handler proxy for a given contract.
Inheritance
System.Object
EventHandlerProxyFactory
Namespace: Copper.Eventing.Client
Assembly: Copper.Eventing.Client.dll
Syntax
public class EventHandlerProxyFactory
Constructors
View SourceEventHandlerProxyFactory(IEnumerable<IFrameworkReceiveInterceptor>, IEnumerable<IReceiveInterceptor>)
Initializes a new instance of the EventHandlerProxyFactory class.
Declaration
public EventHandlerProxyFactory(IEnumerable<IFrameworkReceiveInterceptor> frameworkReceiveInterceptors, IEnumerable<IReceiveInterceptor> receiveInterceptors)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<IFrameworkReceiveInterceptor> | frameworkReceiveInterceptors | The framework receive interceptors. |
System.Collections.Generic.IEnumerable<IReceiveInterceptor> | receiveInterceptors | The receive interceptors. |
Methods
View SourceCreate(Type, Object)
Creates an event handler proxy.
Declaration
public object Create(Type contractType, object eventHandler)
Parameters
Type | Name | Description |
---|---|---|
System.Type | contractType | The contract type. |
System.Object | eventHandler | The event handler. |
Returns
Type | Description |
---|---|
System.Object | The event handler proxy. |
Create<TContract>(TContract)
Creates an event handler proxy.
Declaration
public TContract Create<TContract>(TContract eventHandler)
where TContract : class
Parameters
Type | Name | Description |
---|---|---|
TContract | eventHandler | The event handler. |
Returns
Type | Description |
---|---|
TContract | The event handler proxy. |
Type Parameters
Name | Description |
---|---|
TContract | The contract type. |