Struct ClientSite
Represents a client call site identifier which gets generated on client and sent to server upon handshake.
This struct identifies the calling client by supplying machine/host name and calling application instance ID
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: NFX.dll
Syntax
[Serializable]
public struct ClientSite : INamed
Constructors
ClientSite(Stream)
Deserializes ClientSite from stream. The stream position must be past total size
Declaration
public ClientSite(Stream stream)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
ClientSite(String)
Declaration
public ClientSite(string host)
Parameters
Type |
Name |
Description |
System.String |
host |
|
Fields
GUID_SIZE
Declaration
public const int GUID_SIZE = 16
Field Value
Type |
Description |
System.Int32 |
|
MachineName
Sets process-global machine name for client site identification.
Assign on client to cluster/other machine names, by default the .ctor will use local computer name
Declaration
public static string MachineName
Field Value
Type |
Description |
System.String |
|
MAGIC
Declaration
public const int MAGIC = 1431677610
Field Value
Type |
Description |
System.Int32 |
|
MAX_HOST_NAME_BYTE_LEN
Declaration
public const int MAX_HOST_NAME_BYTE_LEN = 1024
Field Value
Type |
Description |
System.Int32 |
|
MAX_STREAM_BYTE_LEN
Declaration
public const int MAX_STREAM_BYTE_LEN = 1048
Field Value
Type |
Description |
System.Int32 |
|
TEXT_ENCODING
Declaration
public static readonly Encoding TEXT_ENCODING
Field Value
Type |
Description |
System.Text.Encoding |
|
Properties
AppInstanceID
Returns instance ID for the calling application container
Declaration
public Guid AppInstanceID { get; }
Property Value
Type |
Description |
System.Guid |
|
Host
Returns host name for where calling application runs
Declaration
public string Host { get; }
Property Value
Type |
Description |
System.String |
|
Name
Returns host name+app instance guid suitable for registry operations
Declaration
public string Name { get; }
Property Value
Type |
Description |
System.String |
|
Methods
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.ValueType.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.ValueType.GetHashCode()
Serialize(Stream)
Writes ClientSite into stream including total size in bytes. Returns total size
Declaration
public int Serialize(Stream stream)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
Returns
Type |
Description |
System.Int32 |
|
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.ValueType.ToString()
Implements
Extension Methods