/// <summary> /// Restores the user's session. A service should only implement either <see cref="RestoreSession"/> or <see cref="RestoreSessionAsync"/>, /// depending on whether they require restoring the session via HTTP or via setting an internal value. To use either method, it is recommended to first try /// <see cref="RestoreSessionAsync"/> in a try-catch block that will catch a <see cref="System.NotImplementedException"/>, then fall back to <see cref="RestoreSession"/>. /// </summary> /// <param name="response">A response returned by <see cref="LoginAsync"/>.</param> /// <returns>True on success, otherwise false.</returns> public abstract bool RestoreSession(AuthenticationResponse response);
/// <summary> /// Restores the user's session via HTTP request. A service should only implement either <see cref="RestoreSession"/> or <see cref="RestoreSessionAsync"/>, /// depending on whether they require restoring the session via HTTP or via setting an internal value. To use either method, it is recommended to first try /// <see cref="RestoreSessionAsync"/> in a try-catch block that will catch a <see cref="System.NotImplementedException"/>, then fall back to <see cref="RestoreSession"/>. /// </summary> /// <param name="response">A response returned by <see cref="LoginAsync"/>.</param> /// <returns>True on success, otherwise false.</returns> public abstract Task <bool> RestoreSessionAsync(AuthenticationResponse response);