Class EventContractValidator
Provides the capability to validate if a given type conforms to Copper's event contract requirements.
Inheritance
System.Object
EventContractValidator
Namespace: Copper.Common.Validators
Assembly: Copper.Common.dll
Syntax
public static class EventContractValidator
Methods
View SourceIsEventContract(Type)
Determines whether the type to validate is a valid event contract.
Declaration
public static bool IsEventContract(Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type to validate. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Validate(Type)
Determines whether the type to validate is a valid event contract.
Declaration
public static void Validate(Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type to validate. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Type is not a valid event contract. |
Validate<TType>()
Determines whether the type to validate is a valid event contract.
Declaration
public static void Validate<TType>()
Type Parameters
Name | Description |
---|---|
TType | The type to validate. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Type is not a valid event contract. |