A ServiceBusConfigurator
is used to configure an instance of the ServiceBusConfiguration.
public IServiceBusConfiguration Configuration()
Returns the configured ServiceBusConfiguration instance.
public ServiceBusConfigurator MessageSerializer(ISerializer serializer)
Specify the [ISerializer] instance that will be used for serialize and deserialize TransportMessage and the contained Message
instances.
public ServiceBusConfigurator MessageHandlerFactory(IMessageHandlerFactory messageHandlerFactory)
Specify the IMessageHandlerFactory that will be used to obtain IMessageHandler implementations.
public ServiceBusConfigurator AddCompressionAlgorithm(ICompressionAlgorithm algorithm)
Registers a compression algorithm that may e used to either encrypt outgoing messages or decrypt incomming messages.
public ServiceBusConfigurator AddEnryptionAlgorithm(IEncryptionAlgorithm algorithm)
Registers an encryption alggorithm that may be used to either compress outgoing messages or to decompress incomming messages.
public ServiceBusConfigurator SubscriptionManager(ISubscriptionManager manager)
Specify the ISubscriptionManager implementation to use for the endpoint.
public ServiceBusConfigurator AddModule(IModule module)
Adds a module that can extend a pipeline and respond to pipeline events.
public ServiceBusConfigurator Policy(IServiceBusPolicy policy)
Specify the IServiceBusPolicy implementation that will determine retries.
public ServiceBusConfigurator MessageRouteProvider(IMessageRouteProvider messageRouteProvider)
The IMessageRouteProvider instance that is used to determine where to Send
a message type to.
public ServiceBusConfigurator ForwardingRouteProvider(IMessageRouteProvider forwardingRouteProvider)
The IMessageRouteProvider instance that is used to determine where to forward a processed message to.
public ServiceBusConfigurator ThreadActivityFactory(IThreadActivityFactory factory)
The IThreadActivityFactory instance that will return ThreadActivity
instance. You will probably never specify this.
public ServiceBusConfigurator PipelineFactory(IPipelineFactory pipelineFactory)
Specify the IPipelineFactory implementation that will return instances of the relevant MessagePipeline
. You will probably never specify this.
public ServiceBusConfigurator TransactionScopeFactory(ITransactionScopeFactory transactionScopeFactory)
The ITransactionScopeFactory instance is used to create ITransactionScope
instances for placing code within a TransactionScope
. You will probably never specify this.
public ServiceBusConfigurator IdempotenceService(IIdempotenceService idempotenceService)
The IdempotenceService instance is used to ensure that technically identical messages (with the same message id) are not processed more than once. It also ensures that messages sent within a transaction scope are only sent after the transaction scope has been commited.