Show / Hide Table of Contents

    Class EventContractValidator

    Provides the capability to validate if a given type conforms to Copper's event contract requirements.

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

    Methods

    View Source

    IsEventContract(Type)

    Determines whether the type to validate is a valid event contract.

    Declaration
    public static bool IsEventContract(Type type)
    Parameters
    Type Name Description
    System.Type type

    The type to validate.

    Returns
    Type Description
    System.Boolean

    true if the type to validate is a valid event contract; otherwise, false.

    View Source

    Validate(Type)

    Determines whether the type to validate is a valid event contract.

    Declaration
    public static void Validate(Type type)
    Parameters
    Type Name Description
    System.Type type

    The type to validate.

    Exceptions
    Type Condition
    System.InvalidOperationException

    Type is not a valid event contract.

    View Source

    Validate<TType>()

    Determines whether the type to validate is a valid event contract.

    Declaration
    public static void Validate<TType>()
    Type Parameters
    Name Description
    TType

    The type to validate.

    Exceptions
    Type Condition
    System.InvalidOperationException

    Type is not a valid event contract.

    • View Source
    Back to top Generated by DocFX