public override void CommandCompleted(cCommandResult pResult, cTrace.cContext pParentContext) { var lContext = pParentContext.NewMethod(nameof(cLogoutCommandHook), nameof(CommandCompleted), pResult); if (pResult.ResultType == eCommandResultType.ok) { mPipeline.RequestStop(lContext); } }
public void Disconnect(cTrace.cContext pParentContext) { var lContext = pParentContext.NewMethod(nameof(cSession), nameof(Disconnect)); if (mDisposed) { throw new ObjectDisposedException(nameof(cSession)); } mPipeline.RequestStop(lContext); ZSetState(eConnectionState.disconnected, lContext); }