Interface IBusFactoryConfigurator
- Namespace
- MassTransit
- Assembly
- MassTransit.Abstractions.dll
public interface IBusFactoryConfigurator : IReceiveConfigurator, IEndpointConfigurationObserverConnector, IConsumePipeConfigurator, IPipeConfigurator<ConsumeContext>, IConsumerConfigurationObserverConnector, ISagaConfigurationObserverConnector, IHandlerConfigurationObserverConnector, IActivityConfigurationObserverConnector, IConsumerConfigurationObserver, ISagaConfigurationObserver, IHandlerConfigurationObserver, IActivityConfigurationObserver, ISendPipelineConfigurator, IPublishPipelineConfigurator, IBusObserverConnector, IReceiveObserverConnector, IConsumeObserverConnector, ISendObserverConnector, IPublishObserverConnector
- Inherited Members
- Extension Methods
Properties
ConcurrentMessageLimit
Specify the number of concurrent messages that can be consumed (separate from prefetch count)
int? ConcurrentMessageLimit { set; }
Property Value
- int?
ConsumeTopology
IConsumeTopologyConfigurator ConsumeTopology { get; }
Property Value
DefaultContentType
When deserializing a message, if no ContentType is present on the receive context, use this as the default
ContentType DefaultContentType { set; }
Property Value
DeployPublishTopology
Deploys defined Publish message types to the broker at startup
bool DeployPublishTopology { set; }
Property Value
DeployTopologyOnly
Set to true if the topology should be deployed only
bool DeployTopologyOnly { set; }
Property Value
MessageTopology
IMessageTopologyConfigurator MessageTopology { get; }
Property Value
PrefetchCount
Specify the number of messages to prefetch from the message broker
int PrefetchCount { set; }
Property Value
- int
The limit
PublishTopology
IPublishTopologyConfigurator PublishTopology { get; }
Property Value
SendTopology
ISendTopologyConfigurator SendTopology { get; }
Property Value
SerializerContentType
When serializing a message, use the content type specified for serialization
ContentType SerializerContentType { set; }
Property Value
Methods
AddDeserializer(ISerializerFactory, bool)
Add a message deserializer using the specified factory (can be shared by serializer/deserializer)
void AddDeserializer(ISerializerFactory factory, bool isDefault = false)
Parameters
factory
ISerializerFactoryisDefault
boolIf true, set the default content type to the content type of the deserializer
AddSerializer(ISerializerFactory, bool)
Add a message serializer using the specified factory (can be shared by serializer/deserializer)
void AddSerializer(ISerializerFactory factory, bool isSerializer = true)
Parameters
factory
ISerializerFactoryisSerializer
boolIf true, set the current serializer to the specified factory
ClearSerialization()
Clears all message serialization configuration
void ClearSerialization()
Message<T>(Action<IMessageTopologyConfigurator<T>>)
Configure the message topology for the message type (global across all bus instances of the same transport type)
void Message<T>(Action<IMessageTopologyConfigurator<T>> configureTopology) where T : class
Parameters
configureTopology
Action<IMessageTopologyConfigurator<T>>
Type Parameters
T
Publish<T>(Action<IMessagePublishTopologyConfigurator<T>>)
Configure the send topology of the message type
void Publish<T>(Action<IMessagePublishTopologyConfigurator<T>> configureTopology) where T : class
Parameters
configureTopology
Action<IMessagePublishTopologyConfigurator<T>>
Type Parameters
T
Send<T>(Action<IMessageSendTopologyConfigurator<T>>)
Configure the send topology of the message type
void Send<T>(Action<IMessageSendTopologyConfigurator<T>> configureTopology) where T : class
Parameters
configureTopology
Action<IMessageSendTopologyConfigurator<T>>
Type Parameters
T