Show / Hide Table of Contents

    Class EventHandlerValidator

    Provides the capability to validate if an event handler implements an event contract type.

    Inheritance
    System.Object
    EventHandlerValidator
    Namespace: Copper.Common.Validators
    Assembly: Copper.Common.dll
    Syntax
    public static class EventHandlerValidator

    Methods

    View Source

    Validate<TEvent>(Object)

    Validates if the specified event handler implements the expected event contract type.

    Declaration
    public static void Validate<TEvent>(object eventHandler)
    Parameters
    Type Name Description
    System.Object eventHandler

    The event handler.

    Type Parameters
    Name Description
    TEvent

    The expected event contract type.

    Exceptions
    Type Condition
    System.InvalidOperationException

    Event handler of type does not implement event contract type.

    • View Source
    Back to top Generated by DocFX