C# Class NServiceBus.Config.MessageEndpointMappingCollection

A configuration element collection of MessageEndpointMappings.
Inheritance: System.Configuration.ConfigurationElementCollection
Afficher le fichier Open project: Particular/NServiceBus Class Usage Examples

Méthodes publiques

Méthode Description
Add ( NServiceBus.Config.MessageEndpointMapping mapping ) : void

Calls BaseAdd.

Clear ( ) : void

Calls BaseClear.

IndexOf ( NServiceBus.Config.MessageEndpointMapping mapping ) : int

Calls BaseIndexOf on the given mapping.

IsReadOnly ( ) : bool

True if the collection is readonly.

Remove ( NServiceBus.Config.MessageEndpointMapping mapping ) : void

If the mapping exists, calls BaseRemove on it.

Remove ( string name ) : void

Calls BaseRemove.

RemoveAt ( int index ) : void

Calls BaseRemoveAt.

this ( int index ) : NServiceBus.Config.MessageEndpointMapping

Gets/sets the MessageEndpointMapping at the given index.

this ( string Name ) : NServiceBus.Config.MessageEndpointMapping

Gets the MessageEndpointMapping for the given name.

Méthodes protégées

Méthode Description
BaseAdd ( ConfigurationElement element ) : void

Calls BaseAdd with true as the additional parameter.

CreateNewElement ( ) : ConfigurationElement

Creates a new MessageEndpointMapping.

CreateNewElement ( string elementName ) : ConfigurationElement

Creates a new MessageEndpointMapping, setting its Message property to the given name.

GetElementKey ( ConfigurationElement element ) : object

Returns the Messages property of the given MessageEndpointMapping element.

Private Methods

Méthode Description
Apply ( Publishers publishers, UnicastRoutingTable unicastRoutingTable, string>.Func makeCanonicalAddress, Conventions conventions ) : void
GetBaseTypes ( Type messageType, Conventions conventions ) : List
RegisterEventRoute ( Type mappedType, string address, List publisherTableEntries, IEnumerable baseTypes ) : void
RegisterMessageRoute ( Type mappedType, string address, RouteTableEntry>.Dictionary routeTableEntries, IEnumerable baseTypes ) : void

Method Details

Add() public méthode

Calls BaseAdd.
public Add ( NServiceBus.Config.MessageEndpointMapping mapping ) : void
mapping NServiceBus.Config.MessageEndpointMapping
Résultat void

BaseAdd() protected méthode

Calls BaseAdd with true as the additional parameter.
protected BaseAdd ( ConfigurationElement element ) : void
element System.Configuration.ConfigurationElement
Résultat void

Clear() public méthode

Calls BaseClear.
public Clear ( ) : void
Résultat void

CreateNewElement() protected méthode

Creates a new MessageEndpointMapping.
protected CreateNewElement ( ) : ConfigurationElement
Résultat System.Configuration.ConfigurationElement

CreateNewElement() protected méthode

Creates a new MessageEndpointMapping, setting its Message property to the given name.
protected CreateNewElement ( string elementName ) : ConfigurationElement
elementName string
Résultat System.Configuration.ConfigurationElement

GetElementKey() protected méthode

Returns the Messages property of the given MessageEndpointMapping element.
protected GetElementKey ( ConfigurationElement element ) : object
element System.Configuration.ConfigurationElement
Résultat object

IndexOf() public méthode

Calls BaseIndexOf on the given mapping.
public IndexOf ( NServiceBus.Config.MessageEndpointMapping mapping ) : int
mapping NServiceBus.Config.MessageEndpointMapping
Résultat int

IsReadOnly() public méthode

True if the collection is readonly.
public IsReadOnly ( ) : bool
Résultat bool

Remove() public méthode

If the mapping exists, calls BaseRemove on it.
public Remove ( NServiceBus.Config.MessageEndpointMapping mapping ) : void
mapping NServiceBus.Config.MessageEndpointMapping
Résultat void

Remove() public méthode

Calls BaseRemove.
public Remove ( string name ) : void
name string
Résultat void

RemoveAt() public méthode

Calls BaseRemoveAt.
public RemoveAt ( int index ) : void
index int
Résultat void

this() public méthode

Gets/sets the MessageEndpointMapping at the given index.
public this ( int index ) : NServiceBus.Config.MessageEndpointMapping
index int
Résultat NServiceBus.Config.MessageEndpointMapping

this() public méthode

Gets the MessageEndpointMapping for the given name.
public this ( string Name ) : NServiceBus.Config.MessageEndpointMapping
Name string
Résultat NServiceBus.Config.MessageEndpointMapping