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)); } }
private IMessageEnvelope ProcessClose(IDictionary <string, object> metadata) { try { connector.AssertNotDisposed(); connector.AssertAuthenticated(); connector.CloseConnector(); return(connector.CreateEnvelope(metadata, new AcknowledgeResponse(true))); } catch (Exception ex) { connector.Logger.Error(connector, "Error while closing a connection."); connector.Logger.Error(connector, ex); return(CreateErrorResponse(metadata, ex)); } }