Table of Contents

Interface IPublishTopology

Namespace
MassTransit
Assembly
MassTransit.Abstractions.dll
public interface IPublishTopology : IPublishTopologyConfigurationObserverConnector
Inherited Members

Methods

GetMessageTopology<T>()

Returns the specification for the message type

IMessagePublishTopology<T> GetMessageTopology<T>() where T : class

Returns

IMessagePublishTopology<T>

Type Parameters

T

The message type

TryGetPublishAddress(Type, Uri, out Uri?)

Returns the publish address for the message, using the topology rules. This cannot use a PublishContext because the transport isn't available yet.

bool TryGetPublishAddress(Type messageType, Uri baseAddress, out Uri? publishAddress)

Parameters

messageType Type

The message type

baseAddress Uri

The host base address, used to build out the exchange address

publishAddress Uri

The address where the publish endpoint should send the message

Returns

bool

true if the address was available, otherwise false