C# Класс MassTransit.Courier.RoutingSlipBuilder

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
NoArguments object>.IDictionary

Открытые методы

Метод Описание
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." });

Приватные методы

Метод Описание
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

Описание методов

AddActivitiesFromSourceItinerary() публичный Метод

Adds the activities from the source itinerary to the new routing slip and removes them from the source itinerary.
public AddActivitiesFromSourceItinerary ( ) : int
Результат int

AddActivity() публичный Метод

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
Результат void

AddActivity() публичный Метод

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
Результат void

AddActivity() публичный Метод

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
Результат void

AddActivityException() публичный Метод

public AddActivityException ( ActivityException activityException ) : void
activityException ActivityException
Результат void

AddActivityException() публичный Метод

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
Результат void

AddActivityException() публичный Метод

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
Результат void

AddActivityLog() публичный Метод

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
Результат void

AddCompensateLog() публичный Метод

public AddCompensateLog ( System.Guid activityTrackingNumber, Uri compensateAddress, object>.IDictionary data ) : void
activityTrackingNumber System.Guid
compensateAddress System.Uri
data object>.IDictionary
Результат void

AddCompensateLog() публичный Метод

public AddCompensateLog ( System.Guid activityTrackingNumber, Uri compensateAddress, object logObject ) : void
activityTrackingNumber System.Guid
compensateAddress System.Uri
logObject object
Результат void

AddSubscription() публичный Метод

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
Результат Task

AddSubscription() публичный Метод

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
Результат Task

AddSubscription() публичный Метод

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
Результат Task

AddSubscription() публичный Метод

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
Результат void

AddSubscription() публичный Метод

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
Результат void

AddSubscription() публичный Метод

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
Результат void

AddVariable() публичный Метод

Add an object variable to the routing slip
public AddVariable ( string key, object value ) : void
key string
value object
Результат void

AddVariable() публичный Метод

Add a string value to the routing slip
public AddVariable ( string key, string value ) : void
key string
value string
Результат void

Build() публичный Метод

Builds the routing slip using the current state of the builder
public Build ( ) : RoutingSlip
Результат RoutingSlip

GetObjectAsDictionary() публичный статический Метод

public static GetObjectAsDictionary ( object values ) : object>.IDictionary
values object
Результат object>.IDictionary

RoutingSlipBuilder() публичный Метод

public RoutingSlipBuilder ( System.Guid trackingNumber ) : System
trackingNumber System.Guid
Результат System

RoutingSlipBuilder() публичный Метод

public RoutingSlipBuilder ( RoutingSlip routingSlip, Func activitySelector ) : System
routingSlip RoutingSlip
activitySelector Func
Результат System

RoutingSlipBuilder() публичный Метод

public RoutingSlipBuilder ( RoutingSlip routingSlip, IEnumerable itinerary, IEnumerable sourceItinerary ) : System
routingSlip RoutingSlip
itinerary IEnumerable
sourceItinerary IEnumerable
Результат System

RoutingSlipBuilder() публичный Метод

public RoutingSlipBuilder ( RoutingSlip routingSlip, IEnumerable compensateLogs ) : System
routingSlip RoutingSlip
compensateLogs IEnumerable
Результат System

SetVariables() публичный Метод

public SetVariables ( object>.IEnumerable values ) : void
values object>.IEnumerable
Результат void

SetVariables() публичный Метод

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
Результат void

Описание свойств

NoArguments публичное статическое свойство

public static IDictionary NoArguments
Результат object>.IDictionary