Skip to content

Latest commit

 

History

History
136 lines (91 loc) · 4.54 KB

service-bus-configurator.md

File metadata and controls

136 lines (91 loc) · 4.54 KB
title layout
Service Bus Configurator
api

ServiceBusConfigurator

A ServiceBusConfigurator is used to configure an instance of the [ServiceBusConfiguration].

Methods

Configuration

public IServiceBusConfiguration Configuration()

Returns the configured [ServiceBusConfiguration] instance.

MessageSerializer

public ServiceBusConfigurator MessageSerializer(ISerializer serializer)

Specify the [ISerializer] instance that will be used for serialize and deserialize [TransportMessage] and the contained Message instances.

MessageHandlerFactory

public ServiceBusConfigurator MessageHandlerFactory(IMessageHandlerFactory messageHandlerFactory)

Specify the [IMessageHandlerFactory] that will be used to obtain [IMessageHandler] implementations.

AddCompressionAlgorithm

public ServiceBusConfigurator AddCompressionAlgorithm(ICompressionAlgorithm algorithm)

Registers a [compression] algorithm that may e used to either encrypt outgoing messages or decrypt incomming messages.

AddEnryptionAlgorithm

public ServiceBusConfigurator AddEnryptionAlgorithm(IEncryptionAlgorithm algorithm)

Registers an [encryption] alggorithm that may be used to either compress outgoing messages or to decompress incomming messages.

SubscriptionManager

public ServiceBusConfigurator SubscriptionManager(ISubscriptionManager manager)

Specify the [ISubscriptionManager] implementation to use for the endpoint.

AddModule

public ServiceBusConfigurator AddModule(IModule module)

Adds a [module] that can extend a pipeline and respond to pipeline events.

Policy

public ServiceBusConfigurator Policy(IServiceBusPolicy policy)

Specify the [IServiceBusPolicy] implementation that will determine retries.

MessageRouteProvider

public ServiceBusConfigurator MessageRouteProvider(IMessageRouteProvider messageRouteProvider)

The [IMessageRouteProvider] instance that is used to determine where to Send a message type to.

ForwardingRouteProvider

public ServiceBusConfigurator ForwardingRouteProvider(IMessageRouteProvider forwardingRouteProvider)

The [IMessageRouteProvider] instance that is used to determine where to forward a processed message to.

ThreadActivityFactory

public ServiceBusConfigurator ThreadActivityFactory(IThreadActivityFactory factory)

The [IThreadActivityFactory] instance that will return ThreadActivity instance. You will probably never specify this.

PipelineFactory

public ServiceBusConfigurator PipelineFactory(IPipelineFactory pipelineFactory)

Specify the [IPipelineFactory] implementation that will return instances of the relevant MessagePipeline. You will probably never specify this.

TransactionScopeFactory

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.

IdempotenceService

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