Class SessionId
Session Id.
Implements
Inherited Members
Namespace: OnixS.Fix
Assembly: OnixS.Fix.Engine.dll
Syntax
public class SessionId : IEquatable<SessionId>
Constructors
SessionId(string, string, ProtocolVersion, string)
Constructor.
Declaration
public SessionId(string senderCompId, string targetCompId, ProtocolVersion fixVersion, string customKey = "")
Parameters
Type | Name | Description |
---|---|---|
string | senderCompId | |
string | targetCompId | |
ProtocolVersion | fixVersion | |
string | customKey |
Properties
CustomKey
Returns CustomKey - additional id to differentiate sessions with the same (senderCompId, targetCompId, fixVersion); empty string means no token required
Declaration
public string CustomKey { get; }
Property Value
Type | Description |
---|---|
string |
FixVersion
Returns FIX version.
Declaration
public ProtocolVersion FixVersion { get; }
Property Value
Type | Description |
---|---|
ProtocolVersion |
Id
Returns session id string key Key format is SenderCompId-TargetCompId-FixVersion-CustomKey where "-CustomKey" part is omitted if token length is 0.
Declaration
public string Id { get; }
Property Value
Type | Description |
---|---|
string | session id string key |
SenderCompId
Returns SenderCompId.
Declaration
public string SenderCompId { get; }
Property Value
Type | Description |
---|---|
string |
TargetCompId
Returns TargetCompId.
Declaration
public string TargetCompId { get; }
Property Value
Type | Description |
---|---|
string |
Methods
Equals(SessionId)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(SessionId other)
Parameters
Type | Name | Description |
---|---|---|
SessionId | other | An object to compare with this object. |
Returns
Type | Description |
---|---|
bool | true if the current object is equal to the |
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for the current object. |
Overrides
ToDetailedString()
Returns the detailed string representation.
Declaration
public string ToDetailedString()
Returns
Type | Description |
---|---|
string | detailed string representation |
ToString()
Returns the string representation.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | string representation |