void OnExceptionHandler(GridExSocketBase socket, Exception exception) { var s = _marketDepthSocket; if (s != null) { s.OnException -= OnExceptionHandler; } Disconnect(); OnException?.Invoke(this, exception); }
void OnConnectedHandler(GridExSocketBase socket) { _processesStartedEvent.Set(); OnConnected?.Invoke(this); }
void OnDisconnectedHandler(GridExSocketBase socket) { Disconnect(); OnDisconnected?.Invoke(this); }
void OnErrorHandler(GridExSocketBase socket, SocketError error) { OnError?.Invoke(this, error); }