C# Class MassTransit.Courier.RoutingSlipBuilder

Mostra file Open project: MassTransit/MassTransit Class Usage Examples

Public Properties

Property Type Description
NoArguments object>.IDictionary

Public Methods

Method Description
AddActivitiesFromSourceItinerary ( ) : int

Adds the activities from the source itinerary to the new routing slip and removes them from the source itinerary.

AddActivity ( string name, Uri executeAddress ) : void

Adds an activity to the routing slip without specifying any arguments

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

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

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

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

AddActivityException ( ActivityException activityException ) : void
AddActivityException ( HostInfo host, string name, System.Guid activityTrackingNumber, System.DateTime timestamp, System.TimeSpan elapsed, Exception exception ) : void

Adds an activity exception to the routing slip

AddActivityException ( HostInfo host, string name, System.Guid activityTrackingNumber, System.DateTime timestamp, System.TimeSpan elapsed, ExceptionInfo exceptionInfo ) : void

Adds an activity exception to the routing slip

AddActivityLog ( HostInfo host, string name, System.Guid activityTrackingNumber, System.DateTime timestamp, System.TimeSpan duration ) : void
AddCompensateLog ( System.Guid activityTrackingNumber, Uri compensateAddress, object>.IDictionary data ) : void
AddCompensateLog ( System.Guid activityTrackingNumber, Uri compensateAddress, object logObject ) : void
AddSubscription ( Uri address, RoutingSlipEvents events, Task>.Func callback ) : Task

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

AddSubscription ( Uri address, RoutingSlipEvents events, RoutingSlipEventContents contents, Task>.Func callback ) : Task

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

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

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

AddSubscription ( Uri address, RoutingSlipEvents events ) : void

Add an explicit subscription to the routing slip events

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

Add an explicit subscription to the routing slip events

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

Add an explicit subscription to the routing slip events

AddVariable ( string key, object value ) : void

Add an object variable to the routing slip

AddVariable ( string key, string value ) : void

Add a string value to the routing slip

Build ( ) : RoutingSlip

Builds the routing slip using the current state of the builder

GetObjectAsDictionary ( object values ) : object>.IDictionary
RoutingSlipBuilder ( System.Guid trackingNumber ) : System
RoutingSlipBuilder ( RoutingSlip routingSlip, Func activitySelector ) : System
RoutingSlipBuilder ( RoutingSlip routingSlip, IEnumerable itinerary, IEnumerable sourceItinerary ) : System
RoutingSlipBuilder ( RoutingSlip routingSlip, IEnumerable compensateLogs ) : System
SetVariables ( object>.IEnumerable values ) : void
SetVariables ( object values ) : void

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." });

Private Methods

Method Description
IRoutingSlipSendEndpointTarget ( Uri address, RoutingSlipEvents events, RoutingSlipEventContents contents, string activityName, MessageEnvelope message ) : void

Adds a custom subscription message to the routing slip which is sent at the specified events

SetVariablesFromDictionary ( object>.IEnumerable values ) : void

Method Details

AddActivitiesFromSourceItinerary() public method

Adds the activities from the source itinerary to the new routing slip and removes them from the source itinerary.
public AddActivitiesFromSourceItinerary ( ) : int
return int

AddActivity() public method

Adds an activity to the routing slip without specifying any arguments
public AddActivity ( string name, Uri executeAddress ) : void
name string The activity name
executeAddress System.Uri The execution address of the activity
return void

AddActivity() public method

Adds an activity to the routing slip specifying activity arguments a dictionary
public AddActivity ( string name, Uri executeAddress, object>.IDictionary arguments ) : void
name string The activity name
executeAddress System.Uri The execution address of the activity
arguments object>.IDictionary A dictionary of name/values matching the activity argument properties
return void

AddActivity() public method

Adds an activity to the routing slip specifying activity arguments as an anonymous object
public AddActivity ( string name, Uri executeAddress, object arguments ) : void
name string The activity name
executeAddress System.Uri The execution address of the activity
arguments object An anonymous object of properties matching the argument names of the activity
return void

AddActivityException() public method

public AddActivityException ( ActivityException activityException ) : void
activityException ActivityException
return void

AddActivityException() public method

Adds an activity exception to the routing slip
public AddActivityException ( HostInfo host, string name, System.Guid activityTrackingNumber, System.DateTime timestamp, System.TimeSpan elapsed, Exception exception ) : void
host HostInfo
name string The name of the faulted activity
activityTrackingNumber System.Guid The activity tracking number
timestamp System.DateTime The timestamp of the exception
elapsed System.TimeSpan The time elapsed from the start of the activity to the exception
exception System.Exception The exception thrown by the activity
return void

AddActivityException() public method

Adds an activity exception to the routing slip
public AddActivityException ( HostInfo host, string name, System.Guid activityTrackingNumber, System.DateTime timestamp, System.TimeSpan elapsed, ExceptionInfo exceptionInfo ) : void
host HostInfo
name string The name of the faulted activity
activityTrackingNumber System.Guid The activity tracking number
timestamp System.DateTime The timestamp of the exception
elapsed System.TimeSpan The time elapsed from the start of the activity to the exception
exceptionInfo ExceptionInfo
return void

AddActivityLog() public method

public AddActivityLog ( HostInfo host, string name, System.Guid activityTrackingNumber, System.DateTime timestamp, System.TimeSpan duration ) : void
host HostInfo
name string
activityTrackingNumber System.Guid
timestamp System.DateTime
duration System.TimeSpan
return void

AddCompensateLog() public method

public AddCompensateLog ( System.Guid activityTrackingNumber, Uri compensateAddress, object>.IDictionary data ) : void
activityTrackingNumber System.Guid
compensateAddress System.Uri
data object>.IDictionary
return void

AddCompensateLog() public method

public AddCompensateLog ( System.Guid activityTrackingNumber, Uri compensateAddress, object logObject ) : void
activityTrackingNumber System.Guid
compensateAddress System.Uri
logObject object
return void

AddSubscription() public method

Adds a message subscription to the routing slip that will be sent at the specified event points
public AddSubscription ( Uri address, RoutingSlipEvents events, Task>.Func callback ) : Task
address System.Uri
events RoutingSlipEvents
callback Task>.Func
return Task

AddSubscription() public method

Adds a message subscription to the routing slip that will be sent at the specified event points
public AddSubscription ( Uri address, RoutingSlipEvents events, RoutingSlipEventContents contents, Task>.Func callback ) : Task
address System.Uri
events RoutingSlipEvents
contents RoutingSlipEventContents
callback Task>.Func
return Task

AddSubscription() public method

Adds a message subscription to the routing slip that will be sent at the specified event points
public AddSubscription ( Uri address, RoutingSlipEvents events, RoutingSlipEventContents contents, string activityName, Task>.Func callback ) : Task
address System.Uri
events RoutingSlipEvents
contents RoutingSlipEventContents
activityName string Only send events for the specified activity
callback Task>.Func
return Task

AddSubscription() public method

Add an explicit subscription to the routing slip events
public AddSubscription ( Uri address, RoutingSlipEvents events ) : void
address System.Uri The destination address where the events are sent
events RoutingSlipEvents The events to include in the subscription
return void

AddSubscription() public method

Add an explicit subscription to the routing slip events
public AddSubscription ( Uri address, RoutingSlipEvents events, RoutingSlipEventContents contents ) : void
address System.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
return void

AddSubscription() public method

Add an explicit subscription to the routing slip events
public AddSubscription ( Uri address, RoutingSlipEvents events, RoutingSlipEventContents contents, string activityName ) : void
address System.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
return void

AddVariable() public method

Add an object variable to the routing slip
public AddVariable ( string key, object value ) : void
key string
value object
return void

AddVariable() public method

Add a string value to the routing slip
public AddVariable ( string key, string value ) : void
key string
value string
return void

Build() public method

Builds the routing slip using the current state of the builder
public Build ( ) : RoutingSlip
return RoutingSlip

GetObjectAsDictionary() public static method

public static GetObjectAsDictionary ( object values ) : object>.IDictionary
values object
return object>.IDictionary

RoutingSlipBuilder() public method

public RoutingSlipBuilder ( System.Guid trackingNumber ) : System
trackingNumber System.Guid
return System

RoutingSlipBuilder() public method

public RoutingSlipBuilder ( RoutingSlip routingSlip, Func activitySelector ) : System
routingSlip RoutingSlip
activitySelector Func
return System

RoutingSlipBuilder() public method

public RoutingSlipBuilder ( RoutingSlip routingSlip, IEnumerable itinerary, IEnumerable sourceItinerary ) : System
routingSlip RoutingSlip
itinerary IEnumerable
sourceItinerary IEnumerable
return System

RoutingSlipBuilder() public method

public RoutingSlipBuilder ( RoutingSlip routingSlip, IEnumerable compensateLogs ) : System
routingSlip RoutingSlip
compensateLogs IEnumerable
return System

SetVariables() public method

public SetVariables ( object>.IEnumerable values ) : void
values object>.IEnumerable
return void

SetVariables() public method

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." });
public SetVariables ( object values ) : void
values object
return void

Property Details

NoArguments public_oe static_oe property

public static IDictionary NoArguments
return object>.IDictionary