C# Class NServiceBus.RoutingOptionExtensions

Gives users fine grained control over routing via extension methods.
Afficher le fichier Open project: Particular/NServiceBus

Méthodes publiques

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

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

GetReplyToRoute() public static méthode

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

GetRouteToSpecificInstance() public static méthode

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

IsRoutingReplyToAnyInstance() public static méthode

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

IsRoutingReplyToThisInstance() public static méthode

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

IsRoutingToThisEndpoint() public static méthode

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

IsRoutingToThisInstance() public static méthode

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

RouteReplyTo() public static méthode

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

RouteReplyToAnyInstance() public static méthode

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

RouteReplyToThisInstance() public static méthode

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

RouteToSpecificInstance() public static méthode

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

RouteToThisEndpoint() public static méthode

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

RouteToThisInstance() public static méthode

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

SetDestination() public static méthode

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