C# 클래스 MassTransit.Courier.RoutingSlipBuilder

파일 보기 프로젝트 열기: MassTransit/MassTransit 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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