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 |
---|---|
IFix |
ConfiguredSessionRegister
Declaration
protected IConfiguredSessionRegister ConfiguredSessionRegister { get; set; }
Property Value
Type | Description |
---|---|
IConfigured |
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. |
XmlContent
Declaration
protected string XmlContent { get; set; }
Property Value
Type | Description |
---|---|
System. |
Methods
AreKeySessionParamsEqual(SessionParameters, SessionId)
Declaration
public virtual bool AreKeySessionParamsEqual(SessionParameters parameters, SessionId sessionId)
Parameters
Type | Name | Description |
---|---|---|
Session |
parameters | |
Session |
sessionId |
Returns
Type | Description |
---|---|
System. |
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 |
---|---|---|
Session |
sessionId |
|
Returns
Type | Description |
---|---|
Session |
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. |
senderCompId |
|
System. |
targetCompId |
|
System. |
qualifier |
|
Returns
Type | Description |
---|---|
Session |
GetConfiguredSessionParameters()
Gets the configured fix session list.
Declaration
public virtual IList<SessionParameters> GetConfiguredSessionParameters()
Returns
Type | Description |
---|---|
System. |
GetFixSession(SessionId)
Gets the fix session.
Declaration
public virtual IExtendedFixSession GetFixSession(SessionId sessionId)
Parameters
Type | Name | Description |
---|---|---|
Session |
sessionId |
|
Returns
Type | Description |
---|---|
IExtended |
GetFixSession(String, String, String)
Gets the fix session.
Declaration
public virtual IExtendedFixSession GetFixSession(string sender, string target, string qualifier)
Parameters
Type | Name | Description |
---|---|---|
System. |
sender |
|
System. |
target |
|
System. |
qualifier |
|
Returns
Type | Description |
---|---|
IExtended |
GetFixSessions()
Gets fix session list.
Declaration
public virtual IList<IExtendedFixSession> GetFixSessions()
Returns
Type | Description |
---|---|
System. |
SendError(String)
Send error.
Declaration
public virtual void SendError(string problem)
Parameters
Type | Name | Description |
---|---|---|
System. |
problem |
SendInvalidArgument(String)
Send invalid argument.
Declaration
public virtual void SendInvalidArgument(string problem)
Parameters
Type | Name | Description |
---|---|---|
System. |
problem |
SendReject(String)
Send reject.
Declaration
public virtual void SendReject(string problem)
Parameters
Type | Name | Description |
---|---|---|
System. |
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. |
problem | |
Result |
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 |
---|---|---|
Session |
id |