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
namestringThe activity name
executeAddressUriThe 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
namestringThe activity name
executeAddressUriThe execution address of the activity
argumentsIDictionary<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
namestringThe activity name
executeAddressUriThe execution address of the activity
argumentsobjectAn 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
addressUriThe destination address where the events are sent
eventsRoutingSlipEventsThe 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
addressUriThe destination address where the events are sent
eventsRoutingSlipEventsThe events to include in the subscription
contentsRoutingSlipEventContentsThe 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
addressUrieventsRoutingSlipEventscontentsRoutingSlipEventContentscallbackFunc<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
addressUriThe destination address where the events are sent
eventsRoutingSlipEventsThe events to include in the subscription
contentsRoutingSlipEventContentsThe contents of the routing slip event
activityNamestringOnly 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
addressUrieventsRoutingSlipEventscontentsRoutingSlipEventContentsactivityNamestringOnly send events for the specified activity
callbackFunc<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
addressUrieventsRoutingSlipEventscallbackFunc<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
valuesIEnumerable<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
valuesobject