private void AccountControllerClientLoggedIn(object sender, LogedInOrOutEventArgs e) { IClientInterceptor client = (IClientInterceptor)e.Client; CommandAuthorization authorization = this.commandAuthorizations[client]; authorization.IsLoggedIn = false; }
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; }