Пример #1
0
        public async Task DisconnectAsync()
        {
            var cl = new LiveAuthClient(CLIENT_ID);

            await cl.Initialize();

            if (cl.Session != null)
            {
                cl.Logout();
            }
        }
 /// <summary>
 ///     Initializes the auth client and detects if a user is already signed in.
 ///     If a user is already signed in, this method creates a valid Session.
 ///     This call is UI-less.
 /// </summary>
 /// <param name="client">the LiveAuthClient object this method is attached to.</param>
 public static Task <LiveLoginResult> Initialize(this LiveAuthClient client)
 {
     return(client.Initialize(null));
 }