Example #1
0
        private void AccountControllerClientLoggedIn(object sender, LogedInOrOutEventArgs e)
        {
            IClientInterceptor client = (IClientInterceptor)e.Client;

            CommandAuthorization authorization = this.commandAuthorizations[client];

            authorization.IsLoggedIn = false;
        }
Example #2
0
        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;
        }