Deveel.Data.Protocol.ServerConnector.CloseConnector C# (CSharp) Method

CloseConnector() protected method

protected CloseConnector ( ) : void
return void
        protected void CloseConnector()
        {
            try {
                OnCloseConnector();
            } catch (Exception) {
                // TODO: log the exception
            } finally {
                ChangeState(ConnectorState.Closed);
            }
        }

Usage Example

Exemplo n.º 1
0
            private IMessageEnvelope ProcessClose(IDictionary <string, object> metadata)
            {
                try {
                    connector.AssertNotDisposed();
                    connector.AssertAuthenticated();

                    connector.CloseConnector();
                    return(connector.CreateEnvelope(metadata, new AcknowledgeResponse(true)));
                } catch (Exception ex) {
                    // TODO: Log the error ...
                    return(CreateErrorResponse(metadata, ex));
                }
            }
All Usage Examples Of Deveel.Data.Protocol.ServerConnector::CloseConnector