//
// 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.Protocol.Contracts;
using Microsoft.SqlTools.ServiceLayer.Connection.Contracts;
namespace Microsoft.SqlTools.ServiceLayer.ObjectExplorer.Contracts
{
///
/// Information returned from a .
/// Contains success information, a to be used when
/// requesting expansion of nodes, and a root node to display for this area.
///
public class CreateSessionResponse
{
///
/// Boolean indicating if the connection was successful
///
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; }
///
/// Information describing the base node in the tree
///
public NodeInfo RootNode { 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 CreateSessionRequest
{
public static readonly
RequestType Type =
RequestType.Create("objectexplorer/createsession");
}
}