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 SourceIsEngineContract(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 |
|
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. |
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. |