title | layout |
---|---|
Service Bus Configurator |
api |
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.
[Compression]: {{ site.baseurl }}/compression/index.html [Encryption]: {{ site.baseurl }}/encryption/index.html [IMessageHandler]: {{ site.baseurl }}/message-handler/index.html [IMessageHandlerFactory]: {{ site.baseurl }}/message-handler-factory/index.html [IMessageRouteProvider]: {{ site.baseurl }}/message-route-provider/index.html [IPipelineFactory]: {{ site.baseurl }}/pipeline-factory/index.html [IThreadActivityFactory]: {{ site.baseurl }}/thread-activity-factory/index.html [ITransactionScopeFactory]: {{ site.baseurl }}/transactionscope-factory/index.html [IServiceBusPolicy]: {{ site.baseurl }}/service-bus-policy/index.html [ISubscriptionManager]: {{ site.baseurl }}/subscription-manager/index.html [Module]: {{ site.baseurl }}/modules/index.html [ServiceBusConfiguration]: {{ site.baseurl }}/service-bus-configuration/index.html [TransportMessage]: {{ site.baseurl }}/transport-message/index.html [IdempotenceService]: {{ site.baseurl }}/idempotence-service/index.html