C# 클래스 CodeSharp.EventSourcing.Address

상속: ISerializable
파일 보기 프로젝트 열기: tangxuehua/eventsourcing 1 사용 예제들

공개 메소드들

메소드 설명
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