Show / Hide Table of Contents

    Class ManagerContractValidator

    Provides the capability to determine whether a given contract type is a valid Manager contract.

    Inheritance
    System.Object
    ManagerContractValidator
    Namespace: Copper.Conventions.Method.Common.V1.Validators
    Assembly: Copper.Conventions.Method.Common.dll
    Syntax
    public static class ManagerContractValidator

    Methods

    View Source

    IsManagerContract(Type)

    Determines whether the provided contract type is a valid Manager contract.

    Declaration
    public static bool IsManagerContract(Type contractType)
    Parameters
    Type Name Description
    System.Type contractType

    The contract type.

    Returns
    Type Description
    System.Boolean

    true if the provided type is a valid Manager contract; otherwise, false.

    View Source

    Validate(Type)

    Determines whether the provided contract type is a valid Manager contract.

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

    The contract type.

    Exceptions
    Type Condition
    System.InvalidOperationException

    The provided type is not a valid Manager contract.

    View Source

    Validate<TContract>()

    Determines whether the provided contract type is a valid Manager contract.

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

    The contract type.

    • View Source
    Back to top Generated by DocFX