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