Class EventPublisherValidator
Provides the capability to validate if a given type conforms to Copper's event publisher type requirements.
Inheritance
System.Object
EventPublisherValidator
Namespace: Copper.Common.Validators
Assembly: Copper.Common.dll
Syntax
public static class EventPublisherValidator
Methods
View SourceIsEventPublisher(Type)
Determines whether the type to validate is a valid event publisher type.
Declaration
public static bool IsEventPublisher(Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type to validate. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Validate(Type)
Determines wheter the specified type is a valid event publisher type.
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 publisher type. |
Validate<TType>()
Determines whether the type to validate is a valid event publisher type.
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 publisher type. |