C# Class NServiceBus.RoutingSettings

Exposes settings related to routing.
Inheritance: ExposeSettings
Show file Open project: Particular/NServiceBus Class Usage Examples

Public Methods

Method Description
DoNotEnforceBestPractices ( ) : void

Disables the enforcement of messaging best practices (e.g. validating that a published message is an event).

RouteToEndpoint ( Assembly assembly, string destination ) : void

Adds a static unicast route for all types contained in the specified assembly.

RouteToEndpoint ( Assembly assembly, string @namespace, string destination ) : void

Adds a static unicast route for all types contained in the specified assembly and within the given namespace.

RouteToEndpoint ( Type messageType, string destination ) : void

Adds a static unicast route for a given message type.

RoutingSettings ( SettingsHolder settings ) : System

Creates a new instance of RoutingSettings.

Private Methods

Method Description
ThrowOnAddress ( string destination ) : void

Method Details

DoNotEnforceBestPractices() public method

Disables the enforcement of messaging best practices (e.g. validating that a published message is an event).
public DoNotEnforceBestPractices ( ) : void
return void

RouteToEndpoint() public method

Adds a static unicast route for all types contained in the specified assembly.
public RouteToEndpoint ( Assembly assembly, string destination ) : void
assembly System.Reflection.Assembly The assembly whose messages should be routed.
destination string Destination endpoint.
return void

RouteToEndpoint() public method

Adds a static unicast route for all types contained in the specified assembly and within the given namespace.
public RouteToEndpoint ( Assembly assembly, string @namespace, string destination ) : void
assembly System.Reflection.Assembly The assembly whose messages should be routed.
@namespace string
destination string Destination endpoint.
return void

RouteToEndpoint() public method

Adds a static unicast route for a given message type.
public RouteToEndpoint ( Type messageType, string destination ) : void
messageType System.Type The message which should be routed.
destination string The destination endpoint.
return void

RoutingSettings() public method

Creates a new instance of RoutingSettings.
public RoutingSettings ( SettingsHolder settings ) : System
settings SettingsHolder
return System