C# Class NServiceBus.ConventionsBuilder

Defines custom message conventions instead of using the IMessage, IEvent or ICommand interfaces, and other conventions.
Inheritance: ExposeSettings
Show file Open project: Particular/NServiceBus Class Usage Examples

Public Methods

Method Description
ConventionsBuilder ( SettingsHolder settings ) : System

Creates a new instance of ConventionsBuilder class.

DefiningCommandsAs ( bool>.Func definesCommandType ) : ConventionsBuilder

Sets the function to be used to evaluate whether a type is a commands.

DefiningDataBusPropertiesAs ( bool>.Func definesDataBusProperty ) : ConventionsBuilder

Sets the function to be used to evaluate whether a property should be sent via the DataBus or not.

DefiningEncryptedPropertiesAs ( bool>.Func definesEncryptedProperty ) : ConventionsBuilder

Sets the function to be used to evaluate whether a property should be encrypted or not.

DefiningEventsAs ( bool>.Func definesEventType ) : ConventionsBuilder

Sets the function to be used to evaluate whether a type is a event.

DefiningMessagesAs ( bool>.Func definesMessageType ) : ConventionsBuilder

Sets the function to be used to evaluate whether a type is a message.

Method Details

ConventionsBuilder() public method

Creates a new instance of ConventionsBuilder class.
public ConventionsBuilder ( SettingsHolder settings ) : System
settings SettingsHolder An instance of the current settings.
return System

DefiningCommandsAs() public method

Sets the function to be used to evaluate whether a type is a commands.
public DefiningCommandsAs ( bool>.Func definesCommandType ) : ConventionsBuilder
definesCommandType bool>.Func
return ConventionsBuilder

DefiningDataBusPropertiesAs() public method

Sets the function to be used to evaluate whether a property should be sent via the DataBus or not.
public DefiningDataBusPropertiesAs ( bool>.Func definesDataBusProperty ) : ConventionsBuilder
definesDataBusProperty bool>.Func
return ConventionsBuilder

DefiningEncryptedPropertiesAs() public method

Sets the function to be used to evaluate whether a property should be encrypted or not.
public DefiningEncryptedPropertiesAs ( bool>.Func definesEncryptedProperty ) : ConventionsBuilder
definesEncryptedProperty bool>.Func
return ConventionsBuilder

DefiningEventsAs() public method

Sets the function to be used to evaluate whether a type is a event.
public DefiningEventsAs ( bool>.Func definesEventType ) : ConventionsBuilder
definesEventType bool>.Func
return ConventionsBuilder

DefiningMessagesAs() public method

Sets the function to be used to evaluate whether a type is a message.
public DefiningMessagesAs ( bool>.Func definesMessageType ) : ConventionsBuilder
definesMessageType bool>.Func
return ConventionsBuilder