Show / Hide Table of Contents

    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 Source

    EventHandler(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 Source

    ContractType

    Gets the contract type.

    Declaration
    public Type ContractType { get; }
    Property Value
    Type Description
    System.Type

    The contract type.

    View Source

    EventReceiverBuilder

    Gets the event receiver builder.

    Declaration
    public EventReceiverBuilder EventReceiverBuilder { get; }
    Property Value
    Type Description
    EventReceiverBuilder

    The event receiver builder.

    View Source

    Handler

    Gets the handler.

    Declaration
    public object Handler { get; }
    Property Value
    Type Description
    System.Object

    The handler.

    View Source

    HandlerName

    Gets the handler name.

    Declaration
    public string HandlerName { get; }
    Property Value
    Type Description
    System.String

    The handler name.

    • View Source
    In This Article
    • Constructors
      • EventHandler(EventReceiverBuilder, String, Type, Object)
    • Properties
      • ContractType
      • EventReceiverBuilder
      • Handler
      • HandlerName
    Back to top Generated by DocFX