Get Connection String request handler (#665)

This commit is contained in:
Karl Burtram
2018-07-25 15:03:00 -04:00
committed by GitHub
parent c7ac3aeaae
commit 7c96ceb501
4 changed files with 90 additions and 5 deletions

View File

@@ -0,0 +1,18 @@
//
// 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.ServiceLayer.Connection.Contracts
{
/// <summary>
/// Parameters for the Get Connection String Request.
/// </summary>
public class GetConnectionStringParams
{
/// <summary>
/// URI of the owner of the connection
/// </summary>
public string OwnerUri { get; set; }
}
}

View File

@@ -0,0 +1,19 @@
//
// 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;
namespace Microsoft.SqlTools.ServiceLayer.Connection.Contracts
{
/// <summary>
/// Get Connection String request
/// </summary>
public class GetConnectionStringRequest
{
public static readonly
RequestType<GetConnectionStringParams, string> Type =
RequestType<GetConnectionStringParams, string>.Create("connection/getconnectionstring");
}
}