C# Class CodeSharp.EventSourcing.Address

Inheritance: ISerializable
Afficher le fichier Open project: tangxuehua/eventsourcing Class Usage Examples

Méthodes publiques

Méthode Description
Address ( string queueName, string machineName ) : System

Instantiate a new Address for a known queue on a given machine.

Equals ( Address other ) : bool

Check this is equal to other Address

Equals ( object obj ) : bool

Determines whether the specified T:System.Object is equal to the current T:System.Object.

GetHashCode ( ) : int

Provides a hash code of the Address.

InitializeAddressMode ( AddressMode mode ) : void

Sets the name of the machine to be used when none is specified in the address.

InitializeLocalAddress ( string address ) : void

Sets the address of this endpoint. Will throw an exception if overwriting a previous value (but value will still be set).

OverrideDefaultMachine ( string machineName ) : void

Sets the address mode, can only be done as long as the local address is not been initialized.By default the default machine equals Environment.MachineName

Parse ( string address ) : Address

Parses a string and returns an Address.

SubScope ( string qualifier ) : Address

Creates a new Address whose Queue is derived from the Queue of the existing Address together with the provided qualifier. For example: queue.qualifier@machine

ToString ( ) : string

Returns a string representation of the address.

operator ( ) : bool

Overloading for the != for the class Address

Méthodes protégées

Méthode Description
Address ( SerializationInfo info, StreamingContext context ) : System

Deserializes an Address.

Private Methods

Méthode Description
ISerializable ( SerializationInfo info, StreamingContext context ) : void

Method Details

Address() protected méthode

Deserializes an Address.
protected Address ( SerializationInfo info, StreamingContext context ) : System
info System.Runtime.Serialization.SerializationInfo
context System.Runtime.Serialization.StreamingContext
Résultat System

Address() public méthode

Instantiate a new Address for a known queue on a given machine.
public Address ( string queueName, string machineName ) : System
queueName string
machineName string
Résultat System

Equals() public méthode

Check this is equal to other Address
public Equals ( Address other ) : bool
other Address refrence addressed to be checked with this
Résultat bool

Equals() public méthode

Determines whether the specified T:System.Object is equal to the current T:System.Object.
public Equals ( object obj ) : bool
obj object The to compare with the current .
Résultat bool

GetHashCode() public méthode

Provides a hash code of the Address.
public GetHashCode ( ) : int
Résultat int

InitializeAddressMode() public static méthode

Sets the name of the machine to be used when none is specified in the address.
public static InitializeAddressMode ( AddressMode mode ) : void
mode AddressMode
Résultat void

InitializeLocalAddress() public static méthode

Sets the address of this endpoint. Will throw an exception if overwriting a previous value (but value will still be set).
public static InitializeLocalAddress ( string address ) : void
address string
Résultat void

OverrideDefaultMachine() public static méthode

Sets the address mode, can only be done as long as the local address is not been initialized.By default the default machine equals Environment.MachineName
public static OverrideDefaultMachine ( string machineName ) : void
machineName string
Résultat void

Parse() public static méthode

Parses a string and returns an Address.
public static Parse ( string address ) : Address
address string
Résultat Address

SubScope() public méthode

Creates a new Address whose Queue is derived from the Queue of the existing Address together with the provided qualifier. For example: queue.qualifier@machine
public SubScope ( string qualifier ) : Address
qualifier string
Résultat Address

ToString() public méthode

Returns a string representation of the address.
public ToString ( ) : string
Résultat string

operator() public static méthode

Overloading for the != for the class Address
public static operator ( ) : bool
Résultat bool