C# Class MassTransit.Courier.RoutingSlipBuilder

Afficher le fichier Open project: MassTransit/MassTransit Class Usage Examples

Méthodes publiques

Свойство Type Description
NoArguments object>.IDictionary

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

AddActivity() public méthode

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
Résultat void

AddActivity() public méthode

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
Résultat void

AddActivity() public méthode

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
Résultat void

AddActivityException() public méthode

public AddActivityException ( ActivityException activityException ) : void
activityException ActivityException
Résultat void

AddActivityException() public méthode

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
Résultat void

AddActivityException() public méthode

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
Résultat void

AddActivityLog() public méthode

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
Résultat void

AddCompensateLog() public méthode

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

AddCompensateLog() public méthode

public AddCompensateLog ( System.Guid activityTrackingNumber, Uri compensateAddress, object logObject ) : void
activityTrackingNumber System.Guid
compensateAddress System.Uri
logObject object
Résultat void

AddSubscription() public méthode

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
Résultat Task

AddSubscription() public méthode

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
Résultat Task

AddSubscription() public méthode

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
Résultat Task

AddSubscription() public méthode

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
Résultat void

AddSubscription() public méthode

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
Résultat void

AddSubscription() public méthode

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
Résultat void

AddVariable() public méthode

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

AddVariable() public méthode

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

Build() public méthode

Builds the routing slip using the current state of the builder
public Build ( ) : RoutingSlip
Résultat RoutingSlip

GetObjectAsDictionary() public static méthode

public static GetObjectAsDictionary ( object values ) : object>.IDictionary
values object
Résultat object>.IDictionary

RoutingSlipBuilder() public méthode

public RoutingSlipBuilder ( System.Guid trackingNumber ) : System
trackingNumber System.Guid
Résultat System

RoutingSlipBuilder() public méthode

public RoutingSlipBuilder ( RoutingSlip routingSlip, Func activitySelector ) : System
routingSlip RoutingSlip
activitySelector Func
Résultat System

RoutingSlipBuilder() public méthode

public RoutingSlipBuilder ( RoutingSlip routingSlip, IEnumerable itinerary, IEnumerable sourceItinerary ) : System
routingSlip RoutingSlip
itinerary IEnumerable
sourceItinerary IEnumerable
Résultat System

RoutingSlipBuilder() public méthode

public RoutingSlipBuilder ( RoutingSlip routingSlip, IEnumerable compensateLogs ) : System
routingSlip RoutingSlip
compensateLogs IEnumerable
Résultat System

SetVariables() public méthode

public SetVariables ( object>.IEnumerable values ) : void
values object>.IEnumerable
Résultat void

SetVariables() public méthode

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
Résultat void

Property Details

NoArguments public_oe static_oe property

public static IDictionary NoArguments
Résultat object>.IDictionary