Class EventHandler
Represents an event handler for a given contract type.
Inheritance
System.Object
EventHandler
Namespace: Copper.Testing.Harness
Assembly: Copper.Testing.dll
Syntax
public class EventHandler
Constructors
View SourceEventHandler(EventReceiverBuilder, String, Type, Object)
Initializes a new instance of the EventHandler class.
Declaration
public EventHandler(EventReceiverBuilder eventReceiverBuilder, string handlerName, Type contractType, object handler)
Parameters
Type | Name | Description |
---|---|---|
EventReceiverBuilder | eventReceiverBuilder | The event receiver builder. |
System.String | handlerName | The handler name. |
System.Type | contractType | The contract type. |
System.Object | handler | The handler. |
Properties
View SourceContractType
Gets the contract type.
Declaration
public Type ContractType { get; }
Property Value
Type | Description |
---|---|
System.Type | The contract type. |
EventReceiverBuilder
Gets the event receiver builder.
Declaration
public EventReceiverBuilder EventReceiverBuilder { get; }
Property Value
Type | Description |
---|---|
EventReceiverBuilder | The event receiver builder. |
Handler
Gets the handler.
Declaration
public object Handler { get; }
Property Value
Type | Description |
---|---|
System.Object | The handler. |
HandlerName
Gets the handler name.
Declaration
public string HandlerName { get; }
Property Value
Type | Description |
---|---|
System.String | The handler name. |