// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // using Microsoft.SqlTools.Hosting.Contracts; using Microsoft.SqlTools.DataProtocol.Contracts.Connection; namespace Microsoft.SqlTools.DataProtocol.Contracts.Explorer { /// /// Information returned from a . /// Contains success information, a to be used when /// requesting closing an existing session. /// public class CloseSessionResponse { /// /// Boolean indicating if the session was closed successfully /// public bool Success { get; set; } /// /// Unique ID to use when sending any requests for objects in the /// tree under the node /// public string SessionId { get; set; } } /// /// Parameters to the . /// public class CloseSessionParams { /// /// The Id returned from a . This /// is used to disambiguate between different trees. /// public string SessionId { get; set; } } /// /// Establishes an Object Explorer tree session for a specific connection. /// This will create a connection to a specific server or database, register /// it for use in the /// public class CloseSessionRequest { public static readonly RequestType Type = RequestType.Create("explorer/closesession"); } }