Table of Contents

Class PublishContextProxy

Namespace
MassTransit.Context
Assembly
MassTransit.Abstractions.dll
public class PublishContextProxy : ProxyPipeContext, PublishContext, SendContext, PipeContext
Inheritance
PublishContextProxy
Implements
Derived
Inherited Members
Extension Methods

Constructors

PublishContextProxy(PublishContext)

protected PublishContextProxy(PublishContext context)

Parameters

context PublishContext

Properties

BodyLength

After serialization, should return the length of the message body

public long? BodyLength { get; }

Property Value

long?

ContentType

public ContentType? ContentType { get; set; }

Property Value

ContentType

ConversationId

public Guid? ConversationId { get; set; }

Property Value

Guid?

CorrelationId

public Guid? CorrelationId { get; set; }

Property Value

Guid?

Delay

If specified, the message delivery will be delayed by the transport (if supported)

public TimeSpan? Delay { get; set; }

Property Value

TimeSpan?

DestinationAddress

public Uri? DestinationAddress { get; set; }

Property Value

Uri

Durable

True if the message should be persisted to disk to survive a broker restart

public bool Durable { get; set; }

Property Value

bool

FaultAddress

public Uri? FaultAddress { get; set; }

Property Value

Uri

Headers

public SendHeaders Headers { get; }

Property Value

SendHeaders

InitiatorId

public Guid? InitiatorId { get; set; }

Property Value

Guid?

Mandatory

True if the message must be delivered to a subscriber

public bool Mandatory { get; set; }

Property Value

bool

MessageId

public Guid? MessageId { get; set; }

Property Value

Guid?

RequestId

public Guid? RequestId { get; set; }

Property Value

Guid?

ResponseAddress

public Uri? ResponseAddress { get; set; }

Property Value

Uri

ScheduledMessageId

public Guid? ScheduledMessageId { get; set; }

Property Value

Guid?

SentTime

public DateTime? SentTime { get; }

Property Value

DateTime?

Serialization

The endpoint configured serialization collection

public ISerialization Serialization { get; set; }

Property Value

ISerialization

Serializer

The serializer to use when serializing the message to the transport

public IMessageSerializer Serializer { get; set; }

Property Value

IMessageSerializer

SourceAddress

public Uri? SourceAddress { get; set; }

Property Value

Uri

TimeToLive

public TimeSpan? TimeToLive { get; set; }

Property Value

TimeSpan?

Methods

CreateProxy<T>(T)

Create a send context proxy with the new message type

public SendContext<T> CreateProxy<T>(T message) where T : class

Parameters

message T

Returns

SendContext<T>

Type Parameters

T