mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-21 09:35:39 -05:00
26 lines
851 B
C#
26 lines
851 B
C#
//
|
|
// Copyright (c) Microsoft. All rights reserved.
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
//
|
|
|
|
namespace Microsoft.SqlTools.ResourceProvider.Core.Contracts
|
|
{
|
|
/// <summary>
|
|
/// Any response which relies on a token may indicated that the operation failed due to token being expired.
|
|
/// All operational response messages should inherit from this class in order to support a standard method for defining
|
|
/// this failure path
|
|
/// </summary>
|
|
public class TokenReliantResponse
|
|
{
|
|
/// <summary>
|
|
/// Did this succeed?
|
|
/// </summary>
|
|
public bool Result { get; set; }
|
|
|
|
/// <summary>
|
|
/// If this failed, was it due to a token expiring?
|
|
/// </summary>
|
|
public bool IsTokenExpiredFailure { get; set; }
|
|
}
|
|
}
|