EndAuthSession() public static method

Stop tracking started by BeginAuthSession - called when no longer playing game with this entity

public static EndAuthSession ( CSteamID steamID ) : void
steamID CSteamID
return void
Exemplo n.º 1
0
        public void AuthSession()
        {
            var ticket = SteamUser.GetAuthSessionTicket();

            Assert.AreNotEqual(0, ticket.Handle);
            Assert.AreNotEqual(0, ticket.Data.Length);
            Console.WriteLine($"ticket.Handle: {ticket.Handle}");
            Console.WriteLine($"ticket.Data: { string.Join( "", ticket.Data.Select( x => x.ToString( "x" ) ) ) }");

            var result = SteamUser.BeginAuthSession(ticket.Data, SteamClient.SteamId);

            Console.WriteLine($"result: { result }");
            Assert.AreEqual(result, BeginAuthResult.OK);

            SteamUser.EndAuthSession(SteamClient.SteamId);
        }