Class Command
Common interface for all command of Administrative tool.
Inheritance
System.Object
Command
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: FixAntenna.AdminTool.Commands
Assembly: FixAntenna.AdminTool.dll
Syntax
public abstract class Command
Constructors
Command()
Declaration
public Command()
Fields
Log
Declaration
protected ILog Log
Field Value
Type | Description |
---|---|
ILog |
Properties
AdminFixSession
Declaration
protected IFixSession AdminFixSession { get; set; }
Property Value
Type | Description |
---|---|
IFixSession |
ConfiguredSessionRegister
Declaration
protected IConfiguredSessionRegister ConfiguredSessionRegister { get; set; }
Property Value
Type | Description |
---|---|
IConfiguredSessionRegister |
Request
Declaration
protected Request Request { get; set; }
Property Value
Type | Description |
---|---|
Request |
RequestId
Gets request id from request.
if request not set returns null
Declaration
public virtual long? RequestId { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> |
XmlContent
Declaration
protected string XmlContent { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
AreKeySessionParamsEqual(SessionParameters, SessionId)
Declaration
public virtual bool AreKeySessionParamsEqual(SessionParameters parameters, SessionId sessionId)
Parameters
Type | Name | Description |
---|---|---|
SessionParameters | parameters | |
SessionId | sessionId |
Returns
Type | Description |
---|---|
System.Boolean |
Execute()
Execute command.
Declaration
public abstract void Execute()
GetConfiguredSession(SessionId)
Gets the fix session.
Declaration
public virtual SessionParameters GetConfiguredSession(SessionId sessionId)
Parameters
Type | Name | Description |
---|---|---|
SessionId | sessionId |
|
Returns
Type | Description |
---|---|
SessionParameters |
GetConfiguredSession(String, String, String)
Gets the configured fix session.
Declaration
public virtual SessionParameters GetConfiguredSession(string senderCompId, string targetCompId, string qualifier)
Parameters
Type | Name | Description |
---|---|---|
System.String | senderCompId |
|
System.String | targetCompId |
|
System.String | qualifier |
|
Returns
Type | Description |
---|---|
SessionParameters |
GetConfiguredSessionParameters()
Gets the configured fix session list.
Declaration
public virtual IList<SessionParameters> GetConfiguredSessionParameters()
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<SessionParameters> |
GetFixSession(SessionId)
Gets the fix session.
Declaration
public virtual IExtendedFixSession GetFixSession(SessionId sessionId)
Parameters
Type | Name | Description |
---|---|---|
SessionId | sessionId |
|
Returns
Type | Description |
---|---|
IExtendedFixSession |
GetFixSession(String, String, String)
Gets the fix session.
Declaration
public virtual IExtendedFixSession GetFixSession(string sender, string target, string qualifier)
Parameters
Type | Name | Description |
---|---|---|
System.String | sender |
|
System.String | target |
|
System.String | qualifier |
|
Returns
Type | Description |
---|---|
IExtendedFixSession |
GetFixSessions()
Gets fix session list.
Declaration
public virtual IList<IExtendedFixSession> GetFixSessions()
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<IExtendedFixSession> |
SendError(String)
Send error.
Declaration
public virtual void SendError(string problem)
Parameters
Type | Name | Description |
---|---|---|
System.String | problem |
SendInvalidArgument(String)
Send invalid argument.
Declaration
public virtual void SendInvalidArgument(string problem)
Parameters
Type | Name | Description |
---|---|---|
System.String | problem |
SendReject(String)
Send reject.
Declaration
public virtual void SendReject(string problem)
Parameters
Type | Name | Description |
---|---|---|
System.String | problem |
SendResponse(Response)
Send response.
Declaration
public virtual void SendResponse(Response response)
Parameters
Type | Name | Description |
---|---|---|
Response | response |
SendResponse(String, ResultCode)
Send response.
Declaration
public virtual void SendResponse(string problem, ResultCode errorCode)
Parameters
Type | Name | Description |
---|---|---|
System.String | problem | |
ResultCode | errorCode |
SendResponseSuccess(Response)
Send response.
Declaration
public virtual void SendResponseSuccess(Response response)
Parameters
Type | Name | Description |
---|---|---|
Response | response |
SendUnknownSession(SessionId)
Send error with unknown session.
Declaration
public virtual void SendUnknownSession(SessionId id)
Parameters
Type | Name | Description |
---|---|---|
SessionId | id |