コード例 #1
0
ファイル: AccountModule.cs プロジェクト: blint96/G2O_DotNet
        private void AccountControllerClientLoggedIn(object sender, LogedInOrOutEventArgs e)
        {
            IClientInterceptor client = (IClientInterceptor)e.Client;

            CommandAuthorization authorization = this.commandAuthorizations[client];

            authorization.IsLoggedIn = false;
        }
コード例 #2
0
ファイル: AccountModule.cs プロジェクト: blint96/G2O_DotNet
        private void AccountControllerClientLoggedOut(object sender, LogedInOrOutEventArgs e)
        {
            IClientInterceptor client = (IClientInterceptor)e.Client;

            // Most important remove all permissions if a client is logged out.
            CommandAuthorization authorization = this.commandAuthorizations[client];

            authorization.Reset();
            authorization.IsLoggedIn = false;
        }