Class EventServiceInstanceListenerBuilder
Provides the builder class for a Service
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 Event
Declaration
public static EventServiceInstanceListenerBuilder Create(Type contractType, Type implementationType, string listenerName)
Parameters
Type | Name | Description |
---|---|---|
System. |
contractType | The contract type. |
System. |
implementationType | The implementation type. |
System. |
listenerName | The listener name. |
Returns
Type | Description |
---|---|
Event |
The Event |
Create<TContract, TImplementation>(String)
Creates a new Event
Declaration
public static EventServiceInstanceListenerBuilder Create<TContract, TImplementation>(string listenerName)
where TContract : class where TImplementation : class, TContract
Parameters
Type | Name | Description |
---|---|---|
System. |
listenerName | The listener name. |
Returns
Type | Description |
---|---|
Event |
The Event |
Type Parameters
Name | Description |
---|---|
TContract | The contract type. |
TImplementation | The implementation type. |