Show / Hide Table of Contents

    Class EngineContractValidator

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

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

    Methods

    View Source

    IsEngineContract(Type)

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

    Declaration
    public static bool IsEngineContract(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 Engine contract; otherwise, false.

    View Source

    Validate(Type)

    Determines whether the provided contract type is a valid Engine 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 Engine contract.

    View Source

    Validate<TContract>()

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

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

    The contract type.

    • View Source
    Back to top Generated by DocFX