C# Класс NServiceBus.ConventionsBuilder

Defines custom message conventions instead of using the IMessage, IEvent or ICommand interfaces, and other conventions.
Наследование: ExposeSettings
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

ConventionsBuilder() публичный Метод

Creates a new instance of ConventionsBuilder class.
public ConventionsBuilder ( SettingsHolder settings ) : System
settings SettingsHolder An instance of the current settings.
Результат System

DefiningCommandsAs() публичный Метод

Sets the function to be used to evaluate whether a type is a commands.
public DefiningCommandsAs ( bool>.Func definesCommandType ) : ConventionsBuilder
definesCommandType bool>.Func
Результат ConventionsBuilder

DefiningDataBusPropertiesAs() публичный Метод

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
Результат ConventionsBuilder

DefiningEncryptedPropertiesAs() публичный Метод

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
Результат ConventionsBuilder

DefiningEventsAs() публичный Метод

Sets the function to be used to evaluate whether a type is a event.
public DefiningEventsAs ( bool>.Func definesEventType ) : ConventionsBuilder
definesEventType bool>.Func
Результат ConventionsBuilder

DefiningMessagesAs() публичный Метод

Sets the function to be used to evaluate whether a type is a message.
public DefiningMessagesAs ( bool>.Func definesMessageType ) : ConventionsBuilder
definesMessageType bool>.Func
Результат ConventionsBuilder