class O2GSession
Parents | |
System.IDisposable |
Brief
A session object. This object should be disposed
after disconnecting.
Details
A session is an object which can be connected to the trade server. Only one connection can be established from one session object, but multiple connections can be created at the same time.
Use the
O2GTransport
.createSession
method to get a session instance.
The type defined in the fxcore2.dll
assembly.
The namespace is fxcore2
.
Public Methods | |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. Important: always call this function after disconnecting of the session object. |
|
Gets the rules used for the currently established session. |
|
Gets the current price update mode. |
|
Gets the URL for receiving the combo account statement report. |
|
Gets an instance of the request factory. |
|
Gets an instance of the response reader factory. |
|
Gets the current server time. |
|
Gets the current session status. |
|
Gets an instance of the table manager. |
|
Gets an instance of the table manager for specific account. |
|
Gets an instance of the date/time converter. |
|
Returns the list of trading station descriptors. |
|
Starts the connection with the specified trade server. |
|
Starts to close the existing connection with the trade server. |
|
Sends a request to the trade server. |
|
Sets the price update mode. |
|
Sets the trading session if a trading session is requested. |
|
Subscribes a session response listener. |
|
Subscribes a session status listener. |
|
Unsubscribes a response listener. |
|
Unsubscribes a session status listener. |
|
Defines usage of the table manager. |
Events | |
This event occurs when the login procedure is failed. |
|
This event occurs when a request is completed. |
|
This event occurs when a request is failed. |
|
This event occurs when the session status is changed. |
|
This event occurs when a table manager status (tables readiness) changes. |
|
This event occurs when a table update appears. |