Table of Contents

Interface IItineraryBuilder

Namespace
MassTransit
Assembly
MassTransit.Abstractions.dll
public interface IItineraryBuilder

Properties

TrackingNumber

The tracking number of the routing slip

Guid TrackingNumber { get; }

Property Value

Guid

Methods

AddActivitiesFromSourceItinerary()

Add the original itinerary to the routing slip (if present)

int AddActivitiesFromSourceItinerary()

Returns

int

The number of activities added to the itinerary

AddActivity(string, Uri)

Adds an activity to the routing slip without specifying any arguments

void AddActivity(string name, Uri executeAddress)

Parameters

name string

The activity name

executeAddress Uri

The execution address of the activity

AddActivity(string, Uri, IDictionary<string, object>)

Adds an activity to the routing slip specifying activity arguments a dictionary

void AddActivity(string name, Uri executeAddress, IDictionary<string, object> arguments)

Parameters

name string

The activity name

executeAddress Uri

The execution address of the activity

arguments IDictionary<string, object>

A dictionary of name/values matching the activity argument properties

AddActivity(string, Uri, object)

Adds an activity to the routing slip specifying activity arguments as an anonymous object

void AddActivity(string name, Uri executeAddress, object arguments)

Parameters

name string

The activity name

executeAddress Uri

The execution address of the activity

arguments object

An anonymous object of properties matching the argument names of the activity

AddSubscription(Uri, RoutingSlipEvents)

Add an explicit subscription to the routing slip events

void AddSubscription(Uri address, RoutingSlipEvents events)

Parameters

address Uri

The destination address where the events are sent

events RoutingSlipEvents

The events to include in the subscription

AddSubscription(Uri, RoutingSlipEvents, RoutingSlipEventContents)

Add an explicit subscription to the routing slip events

void AddSubscription(Uri address, RoutingSlipEvents events, RoutingSlipEventContents contents)

Parameters

address Uri

The destination address where the events are sent

events RoutingSlipEvents

The events to include in the subscription

contents RoutingSlipEventContents

The contents of the routing slip event

AddSubscription(Uri, RoutingSlipEvents, RoutingSlipEventContents, Func<ISendEndpoint, Task>)

Adds a message subscription to the routing slip that will be sent at the specified event points

Task AddSubscription(Uri address, RoutingSlipEvents events, RoutingSlipEventContents contents, Func<ISendEndpoint, Task> callback)

Parameters

address Uri
events RoutingSlipEvents
contents RoutingSlipEventContents
callback Func<ISendEndpoint, Task>

Returns

Task

AddSubscription(Uri, RoutingSlipEvents, RoutingSlipEventContents, string)

Add an explicit subscription to the routing slip events

void AddSubscription(Uri address, RoutingSlipEvents events, RoutingSlipEventContents contents, string activityName)

Parameters

address Uri

The destination address where the events are sent

events RoutingSlipEvents

The events to include in the subscription

contents RoutingSlipEventContents

The contents of the routing slip event

activityName string

Only send events for the specified activity

AddSubscription(Uri, RoutingSlipEvents, RoutingSlipEventContents, string, Func<ISendEndpoint, Task>)

Adds a message subscription to the routing slip that will be sent at the specified event points

Task AddSubscription(Uri address, RoutingSlipEvents events, RoutingSlipEventContents contents, string activityName, Func<ISendEndpoint, Task> callback)

Parameters

address Uri
events RoutingSlipEvents
contents RoutingSlipEventContents
activityName string

Only send events for the specified activity

callback Func<ISendEndpoint, Task>

Returns

Task

AddSubscription(Uri, RoutingSlipEvents, Func<ISendEndpoint, Task>)

Adds a message subscription to the routing slip that will be sent at the specified event points

Task AddSubscription(Uri address, RoutingSlipEvents events, Func<ISendEndpoint, Task> callback)

Parameters

address Uri
events RoutingSlipEvents
callback Func<ISendEndpoint, Task>

Returns

Task

AddVariable(string, object)

Add a variable to the routing slip

void AddVariable(string key, object value)

Parameters

key string
value object

AddVariable(string, string)

Add a variable to the routing slip

void AddVariable(string key, string value)

Parameters

key string
value string

SetVariables(IEnumerable<KeyValuePair<string, object>>)

Set multiple variables (from a dictionary, for example) on the routing slip

void SetVariables(IEnumerable<KeyValuePair<string, object>> values)

Parameters

values IEnumerable<KeyValuePair<string, object>>

SetVariables(object)

Sets the value of any existing variables to the value in the anonymous object, as well as adding any additional variables that did not exist previously. For example, SetVariables(new { IntValue = 27, StringValue = "Hello, World." });

void SetVariables(object values)

Parameters

values object