IndieAPI.Server.UserManagement.User.Logout C# (CSharp) Method

Logout() public method

public Logout ( ) : void
return void
        public void Logout()
        {
            if (Session == null)
                return;

            CastChannel?.Leave(this);
            CastChannel = null;

            Session.Close();
            Session = null;
        }

Usage Example

コード例 #1
0
ファイル: UserManager.cs プロジェクト: SyncZone/IndieAPI
 private void RemoveUser(User user)
 {
     user.Logout();
        _users.Remove(user.UserNo);
 }