Class SessionId
Implements
Inherited Members
Namespace: OnixS.Fix
Assembly: OnixS.Fix.Engine.dll
Syntax
public class SessionId : IEquatable<SessionId>
Constructors
SessionId(string, string, ProtocolVersion, string)
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
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
Declaration
public string SenderCompId { get; }
Property Value
Type | Description |
---|---|
string |
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()
Declaration
public string ToDetailedString()
Returns
Type | Description |
---|---|
string |
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string that represents the current object. |