Manages network connections to DXFeed.
More...
Manages network connections to DXFeed.
◆ DXEndpoint()
com.dxfeed.api.DXEndpoint.DXEndpoint |
( |
| ) |
|
|
inlineprotected |
Protected constructor for implementations of DXEndpoint.
◆ Close()
void com.dxfeed.api.DXEndpoint.Close |
( |
| ) |
|
|
inline |
◆ Connect()
IDXEndpoint com.dxfeed.api.DXEndpoint.Connect |
( |
string |
address | ) |
|
|
inline |
Connects to the specified remove address. Previously established connections are closed if the new address is different from the old one. This method does nothing if address does not change or if this endpoint is DXEndpointState.Closed. The endpoint State immediately becomes DXEndpointState.Connecting otherwise.
The address string is provided with the market data vendor agreement. Use "demo.dxfeed.com:7300" for a demo quote feed.
The simplest address strings have the following format: |
host:port to establish a TCP/IP connection |
:port to listen for a TCP/IP connection with a plain socket connector (good for up to a few hundred of connections). |
For premium services access credentials must be configured before invocation of Connect
method using User(string) and Password(string) methods.
- Parameters
-
address | The data source address. |
- Returns
- This DXEndpoint.
- Exceptions
-
ArgumentNullException | If address is null. |
Implements com.dxfeed.api.IDXEndpoint.
◆ ConnectionInstance_OnCreation()
void com.dxfeed.api.DXEndpoint.ConnectionInstance_OnCreation |
( |
object |
sender, |
|
|
EventArgs |
e |
|
) |
| |
|
inlineprivate |
◆ Create()
static IDXEndpoint com.dxfeed.api.DXEndpoint.Create |
( |
| ) |
|
|
inlinestatic |
Creates an new endpoint.
- Returns
- The created endpoint.
◆ Disconnect()
void com.dxfeed.api.DXEndpoint.Disconnect |
( |
| ) |
|
|
inline |
◆ Dispose()
void com.dxfeed.api.DXEndpoint.Dispose |
( |
| ) |
|
|
inline |
◆ GetEventTypes()
ISet<Type> com.dxfeed.api.DXEndpoint.GetEventTypes |
( |
| ) |
|
|
inline |
Returns a set of all event types supported by this endpoint. The resulting set cannot be modified.
- Returns
- Set of all event types.
Implements com.dxfeed.api.IDXEndpoint.
◆ GetInstance()
static IDXEndpoint com.dxfeed.api.DXEndpoint.GetInstance |
( |
| ) |
|
|
inlinestatic |
Returns a default application-wide singleton instance of DXEndpoint with a default role. Most applications use only a single data-source and should rely on this method to get one.
- Returns
- Instance of DXEndpoint with a default role.
◆ Password()
IDXEndpoint com.dxfeed.api.DXEndpoint.Password |
( |
string |
password | ) |
|
|
inline |
◆ UnsafeCloseConnection()
void com.dxfeed.api.DXEndpoint.UnsafeCloseConnection |
( |
| ) |
|
|
inlineprivate |
◆ User()
IDXEndpoint com.dxfeed.api.DXEndpoint.User |
( |
string |
user | ) |
|
|
inline |
◆ address
◆ assyncState
◆ connection
◆ DefaultAddress
readonly string com.dxfeed.api.DXEndpoint.DefaultAddress = "demo.dxfeed.com:7300" |
|
staticprivate |
◆ DefaultPassword
readonly string com.dxfeed.api.DXEndpoint.DefaultPassword = "demo" |
|
staticprivate |
◆ DefaultUser
readonly string com.dxfeed.api.DXEndpoint.DefaultUser = "demo" |
|
staticprivate |
◆ endpointInstance
DXEndpoint com.dxfeed.api.DXEndpoint.endpointInstance = null |
|
staticprivate |
◆ instanceLocker
object com.dxfeed.api.DXEndpoint.instanceLocker = new object() |
|
staticprivate |
◆ password
◆ stateLocker
object com.dxfeed.api.DXEndpoint.stateLocker = new object() |
|
private |
◆ user
◆ Connection
◆ Feed
IDXFeed com.dxfeed.api.DXEndpoint.Feed |
|
getprivate set |
Returns feed that is associated with this endpoint.
- Returns
- The feed.
◆ State
Thread-safe state getter of this endpoint.
◆ OnClosing
Event fires when Close() method was called.
The documentation for this class was generated from the following file: