Class EventServiceInstanceListenerBuilder
Provides the builder class for a ServiceInstanceListener configured to receive events.
Inheritance
System.Object
EventServiceInstanceListenerBuilder
Namespace: Copper.Eventing.Service
Assembly: Copper.Eventing.Service.dll
Syntax
public sealed class EventServiceInstanceListenerBuilder : EventServiceInstanceListenerBuilder<EventServiceInstanceListenerBuilder>
Methods
View SourceCreate(Type, Type, String)
Creates a new EventServiceInstanceListenerBuilder instance.
Declaration
public static EventServiceInstanceListenerBuilder Create(Type contractType, Type implementationType, string listenerName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Type | contractType | The contract type. |
| System.Type | implementationType | The implementation type. |
| System.String | listenerName | The listener name. |
Returns
| Type | Description |
|---|---|
| EventServiceInstanceListenerBuilder | The EventServiceInstanceListenerBuilder instance. |
Create<TContract, TImplementation>(String)
Creates a new EventServiceInstanceListenerBuilder instance.
Declaration
public static EventServiceInstanceListenerBuilder Create<TContract, TImplementation>(string listenerName)
where TContract : class where TImplementation : class, TContract
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | listenerName | The listener name. |
Returns
| Type | Description |
|---|---|
| EventServiceInstanceListenerBuilder | The EventServiceInstanceListenerBuilder instance. |
Type Parameters
| Name | Description |
|---|---|
| TContract | The contract type. |
| TImplementation | The implementation type. |