private void ExecuteProtocol(IWireProtocol protocol, CancellationToken cancellationToken) { try { protocol.Execute(_connection, cancellationToken); } catch (Exception ex) { _server.HandleChannelException(_connection, ex); throw; } }
private TResult ExecuteProtocol <TResult>(IWireProtocol <TResult> protocol, CancellationToken cancellationToken) { try { return(protocol.Execute(_connection, cancellationToken)); } catch (Exception ex) { _server.HandleChannelException(_connection, ex); throw; } }
private TResult ExecuteProtocol <TResult>(IWireProtocol <TResult> protocol, ICoreSession session, CancellationToken cancellationToken) { try { return(protocol.Execute(_connection, cancellationToken)); } catch (Exception ex) { MarkSessionDirtyIfNeeded(session, ex); _server.HandleChannelException(_connection, ex); throw; } }