Class ProtoMessagingBuilder

Namespace
ProtoTest.Messaging
Assembly
ProtoTest.Messaging.dll
public sealed class ProtoMessagingBuilder
Inheritance
ProtoMessagingBuilder
Inherited Members
Extension Methods

Properties

Services

public IServiceCollection Services { get; }

Property Value

IServiceCollection

Methods

CaptureAttachments(Action<MessagingAttachmentOptions>?)

Enables automatic published and received payload attachments, sanitized and redacted. Code configuration runs first and the known configuration section binds over it afterwards.

public ProtoMessagingBuilder CaptureAttachments(Action<MessagingAttachmentOptions>? configure = null)

Parameters

configure Action<MessagingAttachmentOptions>

Returns

ProtoMessagingBuilder

UseBroker(Func<IServiceProvider, IProtoMessageBroker>)

Replaces the default in-memory broker with an adapter, for example RabbitMQ.

public ProtoMessagingBuilder UseBroker(Func<IServiceProvider, IProtoMessageBroker> factory)

Parameters

factory Func<IServiceProvider, IProtoMessageBroker>

Returns

ProtoMessagingBuilder