Serialize Connection String (#680)

* add string serialization

* add unadded file

* changed code to be testable, added test

* moved test to correct location

* change to send undefined rather than error if the serialization fails

* update request name
This commit is contained in:
Anthony Dresser
2018-08-16 13:10:14 -07:00
committed by GitHub
parent df3c312984
commit 3c0a282333
3 changed files with 102 additions and 0 deletions

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>
/// Serialize Connection String request
/// </summary>
public class BuildConnectionInfoRequest
{
public static readonly
RequestType<string, ConnectionDetails> Type =
RequestType<string, ConnectionDetails>.Create("connection/buildconnectioninfo");
}
}