C# Класс NServiceBus.RoutingSettings

Exposes settings related to routing.
Наследование: ExposeSettings
Показать файл Открыть проект Примеры использования класса

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

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

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

Метод Описание
ThrowOnAddress ( string destination ) : void

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

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

Disables the enforcement of messaging best practices (e.g. validating that a published message is an event).
public DoNotEnforceBestPractices ( ) : void
Результат void

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

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

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

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

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

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

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

Creates a new instance of RoutingSettings.
public RoutingSettings ( SettingsHolder settings ) : System
settings SettingsHolder
Результат System