Example #1
0
                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);
                    }
                }
Example #2
0
            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);
            }