C# Class NServiceBus.RoutingOptionExtensions

Gives users fine grained control over routing via extension methods.
Show file Open project: Particular/NServiceBus

Public Methods

Method Description
GetDestination ( this options ) : string

Returns the destination configured by SetDestination(ReplyOptions, string).

GetReplyToRoute ( this options ) : string

Returns the configured route by RouteReplyTo(NServiceBus.ReplyOptions,string).

GetRouteToSpecificInstance ( this options ) : string

Returns the instance configured by RouteToSpecificInstance where the message should be routed to.

IsRoutingReplyToAnyInstance ( this options ) : bool

Indicates whether RouteReplyToAnyInstance(NServiceBus.SendOptions) has been called on this options.

IsRoutingReplyToThisInstance ( this options ) : bool

Indicates whether RouteReplyToThisInstance(NServiceBus.SendOptions) has been called on this options.

IsRoutingToThisEndpoint ( this options ) : bool

Returns whether the message should be routed to this endpoint.

IsRoutingToThisInstance ( this options ) : bool

Returns whether the message should be routed to this endpoint instance.

RouteReplyTo ( this options, string address ) : void

Instructs the receiver to route the reply to specified address.

RouteReplyToAnyInstance ( this options ) : void

Instructs the receiver to route the reply for this message to any instance of this endpoint.

RouteReplyToThisInstance ( this options ) : void

Instructs the receiver to route the reply for this message to this instance.

RouteToSpecificInstance ( this options, string instanceId ) : void

Routes this message to a specific instance of a destination endpoint.

RouteToThisEndpoint ( this options ) : void

Routes this message to any instance of this endpoint.

RouteToThisInstance ( this options ) : void

Routes this message to this endpoint instance.

SetDestination ( this options, string destination ) : void

Allows a specific physical address to be used to route this message.

Method Details

GetDestination() public static method

Returns the destination configured by SetDestination(ReplyOptions, string).
public static GetDestination ( this options ) : string
options this Option being extended.
return string

GetReplyToRoute() public static method

Returns the configured route by RouteReplyTo(NServiceBus.ReplyOptions,string).
public static GetReplyToRoute ( this options ) : string
options this Option being extended.
return string

GetRouteToSpecificInstance() public static method

Returns the instance configured by RouteToSpecificInstance where the message should be routed to.
public static GetRouteToSpecificInstance ( this options ) : string
options this Option being extended.
return string

IsRoutingReplyToAnyInstance() public static method

Indicates whether RouteReplyToAnyInstance(NServiceBus.SendOptions) has been called on this options.
public static IsRoutingReplyToAnyInstance ( this options ) : bool
options this Option being extended.
return bool

IsRoutingReplyToThisInstance() public static method

Indicates whether RouteReplyToThisInstance(NServiceBus.SendOptions) has been called on this options.
public static IsRoutingReplyToThisInstance ( this options ) : bool
options this Option being extended.
return bool

IsRoutingToThisEndpoint() public static method

Returns whether the message should be routed to this endpoint.
public static IsRoutingToThisEndpoint ( this options ) : bool
options this Option being extended.
return bool

IsRoutingToThisInstance() public static method

Returns whether the message should be routed to this endpoint instance.
public static IsRoutingToThisInstance ( this options ) : bool
options this Option being extended.
return bool

RouteReplyTo() public static method

Instructs the receiver to route the reply to specified address.
public static RouteReplyTo ( this options, string address ) : void
options this Option being extended.
address string Reply destination.
return void

RouteReplyToAnyInstance() public static method

Instructs the receiver to route the reply for this message to any instance of this endpoint.
public static RouteReplyToAnyInstance ( this options ) : void
options this Option being extended.
return void

RouteReplyToThisInstance() public static method

Instructs the receiver to route the reply for this message to this instance.
public static RouteReplyToThisInstance ( this options ) : void
options this Option being extended.
return void

RouteToSpecificInstance() public static method

Routes this message to a specific instance of a destination endpoint.
public static RouteToSpecificInstance ( this options, string instanceId ) : void
options this Option being extended.
instanceId string ID of destination instance.
return void

RouteToThisEndpoint() public static method

Routes this message to any instance of this endpoint.
public static RouteToThisEndpoint ( this options ) : void
options this Option being extended.
return void

RouteToThisInstance() public static method

Routes this message to this endpoint instance.
public static RouteToThisInstance ( this options ) : void
options this Option being extended.
return void

SetDestination() public static method

Allows a specific physical address to be used to route this message.
public static SetDestination ( this options, string destination ) : void
options this Option being extended.
destination string The destination address.
return void