C# Класс CodeSharp.EventSourcing.Address

Наследование: ISerializable
Показать файл Открыть проект Примеры использования класса

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

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

Защищенные методы

Метод Описание
Address ( SerializationInfo info, StreamingContext context ) : System

Deserializes an Address.

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

Метод Описание
ISerializable ( SerializationInfo info, StreamingContext context ) : void

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

Address() защищенный Метод

Deserializes an Address.
protected Address ( SerializationInfo info, StreamingContext context ) : System
info System.Runtime.Serialization.SerializationInfo
context System.Runtime.Serialization.StreamingContext
Результат System

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

Instantiate a new Address for a known queue on a given machine.
public Address ( string queueName, string machineName ) : System
queueName string
machineName string
Результат System

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

Check this is equal to other Address
public Equals ( Address other ) : bool
other Address refrence addressed to be checked with this
Результат bool

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

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

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

Provides a hash code of the Address.
public GetHashCode ( ) : int
Результат int

InitializeAddressMode() публичный статический Метод

Sets the name of the machine to be used when none is specified in the address.
public static InitializeAddressMode ( AddressMode mode ) : void
mode AddressMode
Результат void

InitializeLocalAddress() публичный статический Метод

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

OverrideDefaultMachine() публичный статический Метод

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

Parse() публичный статический Метод

Parses a string and returns an Address.
public static Parse ( string address ) : Address
address string
Результат Address

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

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

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

Returns a string representation of the address.
public ToString ( ) : string
Результат string

operator() публичный статический Метод

Overloading for the != for the class Address
public static operator ( ) : bool
Результат bool