C# Class NServiceBus.LogicalAddress

Represents a logical address (independent of transport).
Show file Open project: Particular/NServiceBus Class Usage Examples

Public Methods

Method Description
CreateIndividualizedAddress ( string discriminator ) : LogicalAddress

Creates a new individualized logical address with the specified discriminator.

CreateLocalAddress ( string queueName, string>.IReadOnlyDictionary properties ) : LogicalAddress

Creates a logical address for this endpoint.

CreateQualifiedAddress ( string qualifier ) : LogicalAddress

Creates a new logical address with the given qualifier.

CreateRemoteAddress ( EndpointInstance endpointInstance ) : LogicalAddress

Creates a logical address for a remote endpoint.

Equals ( object obj ) : bool

Determines whether the specified object is equal to the current object.

GetHashCode ( ) : int

Serves as a hash function for a particular type.

ToString ( ) : string

Returns a string that represents the current object.

operator ( ) : bool

Checks for equality.

Private Methods

Method Description
Equals ( LogicalAddress other ) : bool
LogicalAddress ( EndpointInstance endpointInstance, string qualifier ) : System

Method Details

CreateIndividualizedAddress() public method

Creates a new individualized logical address with the specified discriminator.
public CreateIndividualizedAddress ( string discriminator ) : LogicalAddress
discriminator string The discriminator value used to individualize the address.
return LogicalAddress

CreateLocalAddress() public static method

Creates a logical address for this endpoint.
public static CreateLocalAddress ( string queueName, string>.IReadOnlyDictionary properties ) : LogicalAddress
queueName string The name of the main input queue.
properties string>.IReadOnlyDictionary The additional transport-specific properties.
return LogicalAddress

CreateQualifiedAddress() public method

Creates a new logical address with the given qualifier.
public CreateQualifiedAddress ( string qualifier ) : LogicalAddress
qualifier string The qualifier for the new address.
return LogicalAddress

CreateRemoteAddress() public static method

Creates a logical address for a remote endpoint.
public static CreateRemoteAddress ( EndpointInstance endpointInstance ) : LogicalAddress
endpointInstance EndpointInstance The endpoint instance that describes the remote endpoint.
return LogicalAddress

Equals() public method

Determines whether the specified object is equal to the current object.
public Equals ( object obj ) : bool
obj object The object to compare with the current object.
return bool

GetHashCode() public method

Serves as a hash function for a particular type.
public GetHashCode ( ) : int
return int

ToString() public method

Returns a string that represents the current object.
public ToString ( ) : string
return string

operator() public static method

Checks for equality.
public static operator ( ) : bool
return bool