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
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
stringThe activity name
executeAddress
UriThe 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
stringThe activity name
executeAddress
UriThe 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
stringThe activity name
executeAddress
UriThe execution address of the activity
arguments
objectAn 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
UriThe destination address where the events are sent
events
RoutingSlipEventsThe 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
UriThe destination address where the events are sent
events
RoutingSlipEventsThe events to include in the subscription
contents
RoutingSlipEventContentsThe 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
Urievents
RoutingSlipEventscontents
RoutingSlipEventContentscallback
Func<ISendEndpoint, Task>
Returns
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
UriThe destination address where the events are sent
events
RoutingSlipEventsThe events to include in the subscription
contents
RoutingSlipEventContentsThe contents of the routing slip event
activityName
stringOnly 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
Urievents
RoutingSlipEventscontents
RoutingSlipEventContentsactivityName
stringOnly send events for the specified activity
callback
Func<ISendEndpoint, Task>
Returns
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
Urievents
RoutingSlipEventscallback
Func<ISendEndpoint, Task>
Returns
AddVariable(string, object)
Add a variable to the routing slip
void AddVariable(string key, object value)
Parameters
AddVariable(string, string)
Add a variable to the routing slip
void AddVariable(string key, string value)
Parameters
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