Class ManagerEventsContractValidator
Provides the capability to determine whether a given contract type is a valid Manager events contract.
Inheritance
System.Object
ManagerEventsContractValidator
Namespace: Copper.Conventions.Method.Common.V1.Validators
Assembly: Copper.Conventions.Method.Common.dll
Syntax
public static class ManagerEventsContractValidator
Methods
View SourceIsManagerEventContract(Type)
Determines whether the provided contract type is a valid Manager events contract.
Declaration
public static bool IsManagerEventContract(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 events 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 events contract. |
Validate<TContract>()
Determines whether the provided contract type is a valid Manager events contract.
Declaration
public static void Validate<TContract>()
Type Parameters
| Name | Description |
|---|---|
| TContract | The contract type. |