mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-13 17:23:02 -05:00
Merge some code clean ups. Find+Replace 'PowerShell' with 'SQL Tools'. Enable logger in ServiceHost project.
26 lines
786 B
C#
26 lines
786 B
C#
//
|
|
// Copyright (c) Microsoft. All rights reserved.
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
//
|
|
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Serialization;
|
|
|
|
namespace Microsoft.SqlTools.EditorServices.Protocol.MessageProtocol
|
|
{
|
|
public static class Constants
|
|
{
|
|
public const string ContentLengthFormatString = "Content-Length: {0}\r\n\r\n";
|
|
public static readonly JsonSerializerSettings JsonSerializerSettings;
|
|
|
|
static Constants()
|
|
{
|
|
JsonSerializerSettings = new JsonSerializerSettings();
|
|
|
|
// Camel case all object properties
|
|
JsonSerializerSettings.ContractResolver =
|
|
new CamelCasePropertyNamesContractResolver();
|
|
}
|
|
}
|
|
}
|