Renaming all the namespaces for ServiceHost

Also wiring up the namespace changes to make the servicehost component
build.
NOTE: This will not build
This commit is contained in:
Benjamin Russell
2016-07-21 13:39:01 -07:00
parent f1e6b8a4e4
commit eb25f56e64
21 changed files with 46 additions and 37 deletions

View File

@@ -6,7 +6,7 @@
using Microsoft.SqlTools.EditorServices.Protocol.MessageProtocol.Serializers;
using System.Threading.Tasks;
namespace Microsoft.SqlTools.EditorServices.Protocol.MessageProtocol.Channel
namespace Microsoft.SqlTools.ServiceLayer.ServiceHost.Protocol.Channel
{
/// <summary>
/// Defines a base implementation for servers and their clients over a

View File

@@ -8,7 +8,7 @@ using System.IO;
using System.Text;
using System.Threading.Tasks;
namespace Microsoft.SqlTools.EditorServices.Protocol.MessageProtocol.Channel
namespace Microsoft.SqlTools.ServiceLayer.ServiceHost.Protocol.Channel
{
/// <summary>
/// Provides a client implementation for the standard I/O channel.

View File

@@ -7,7 +7,7 @@ using System.IO;
using System.Text;
using System.Threading.Tasks;
namespace Microsoft.SqlTools.EditorServices.Protocol.MessageProtocol.Channel
namespace Microsoft.SqlTools.ServiceLayer.ServiceHost.Protocol.Channel
{
/// <summary>
/// Provides a server implementation for the standard I/O channel.

View File

@@ -6,7 +6,7 @@
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
namespace Microsoft.SqlTools.EditorServices.Protocol.MessageProtocol
namespace Microsoft.SqlTools.ServiceLayer.ServiceHost.Protocol
{
public static class Constants
{

View File

@@ -3,7 +3,7 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
namespace Microsoft.SqlTools.EditorServices.Protocol.MessageProtocol
namespace Microsoft.SqlTools.ServiceLayer.ServiceHost.Protocol.Contracts
{
/// <summary>
/// Defines an event type with a particular method name.

View File

@@ -6,7 +6,7 @@
using System.Diagnostics;
using Newtonsoft.Json.Linq;
namespace Microsoft.SqlTools.EditorServices.Protocol.MessageProtocol
namespace Microsoft.SqlTools.ServiceLayer.ServiceHost.Protocol.Contracts
{
/// <summary>
/// Defines all possible message types.

View File

@@ -5,7 +5,7 @@
using System.Diagnostics;
namespace Microsoft.SqlTools.EditorServices.Protocol.MessageProtocol
namespace Microsoft.SqlTools.ServiceLayer.ServiceHost.Protocol.Contracts
{
[DebuggerDisplay("RequestType MethodName = {MethodName}")]
public class RequestType<TParams, TResult>

View File

@@ -4,8 +4,9 @@
//
using System.Threading.Tasks;
using Microsoft.SqlTools.ServiceLayer.ServiceHost.Protocol.Contracts;
namespace Microsoft.SqlTools.EditorServices.Protocol.MessageProtocol
namespace Microsoft.SqlTools.ServiceLayer.ServiceHost.Protocol
{
/// <summary>
/// Provides context for a received event so that handlers

View File

@@ -4,8 +4,9 @@
//
using System.Threading.Tasks;
using Microsoft.SqlTools.ServiceLayer.ServiceHost.Protocol.Contracts;
namespace Microsoft.SqlTools.EditorServices.Protocol.MessageProtocol
namespace Microsoft.SqlTools.ServiceLayer.ServiceHost.Protocol
{
internal interface IMessageSender
{

View File

@@ -3,15 +3,15 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using Microsoft.SqlTools.EditorServices.Protocol.MessageProtocol.Channel;
using Microsoft.SqlTools.EditorServices.Utility;
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.SqlTools.ServiceLayer.ServiceHost.Protocol.Channel;
using Microsoft.SqlTools.EditorServices.Utility;
namespace Microsoft.SqlTools.EditorServices.Protocol.MessageProtocol
namespace Microsoft.SqlTools.ServiceLayer.ServiceHost.Protocol
{
public class MessageDispatcher
{

View File

@@ -5,7 +5,7 @@
using System;
namespace Microsoft.SqlTools.EditorServices.Protocol.MessageProtocol
namespace Microsoft.SqlTools.ServiceLayer.ServiceHost.Protocol
{
public class MessageParseException : Exception
{

View File

@@ -3,7 +3,7 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
namespace Microsoft.SqlTools.EditorServices.Protocol.MessageProtocol
namespace Microsoft.SqlTools.ServiceLayer.ServiceHost.Protocol
{
/// <summary>
/// Defines the possible message protocol types.

View File

@@ -3,16 +3,18 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using Microsoft.SqlTools.EditorServices.Utility;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using Microsoft.SqlTools.EditorServices.Utility;
using Microsoft.SqlTools.ServiceLayer.ServiceHost.Protocol.Contracts;
using Microsoft.SqlTools.ServiceLayer.ServiceHost.Protocol.Serializers;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace Microsoft.SqlTools.EditorServices.Protocol.MessageProtocol
namespace Microsoft.SqlTools.ServiceLayer.ServiceHost.Protocol
{
public class MessageReader
{

View File

@@ -3,14 +3,16 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using Microsoft.SqlTools.EditorServices.Utility;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using Microsoft.SqlTools.EditorServices.Utility;
using Microsoft.SqlTools.ServiceLayer.ServiceHost.Protocol.Contracts;
using Microsoft.SqlTools.ServiceLayer.ServiceHost.Protocol.Serializers;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace Microsoft.SqlTools.EditorServices.Protocol.MessageProtocol
namespace Microsoft.SqlTools.ServiceLayer.ServiceHost.Protocol
{
public class MessageWriter
{

View File

@@ -3,13 +3,14 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using Microsoft.SqlTools.EditorServices.Protocol.MessageProtocol.Channel;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.SqlTools.ServiceLayer.ServiceHost.Protocol.Channel;
using Microsoft.SqlTools.ServiceLayer.ServiceHost.Protocol.Contracts;
namespace Microsoft.SqlTools.EditorServices.Protocol.MessageProtocol
namespace Microsoft.SqlTools.ServiceLayer.ServiceHost.Protocol
{
/// <summary>
/// Provides behavior for a client or server endpoint that

View File

@@ -3,10 +3,11 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using Newtonsoft.Json.Linq;
using System.Threading.Tasks;
using Microsoft.SqlTools.ServiceLayer.ServiceHost.Protocol.Contracts;
using Newtonsoft.Json.Linq;
namespace Microsoft.SqlTools.EditorServices.Protocol.MessageProtocol
namespace Microsoft.SqlTools.ServiceLayer.ServiceHost.Protocol
{
public class RequestContext<TResult>
{

View File

@@ -5,7 +5,7 @@
using Newtonsoft.Json.Linq;
namespace Microsoft.SqlTools.EditorServices.Protocol.MessageProtocol
namespace Microsoft.SqlTools.ServiceLayer.ServiceHost.Protocol.Serializers
{
/// <summary>
/// Defines a common interface for message serializers.

View File

@@ -5,7 +5,7 @@
using Newtonsoft.Json.Linq;
namespace Microsoft.SqlTools.EditorServices.Protocol.MessageProtocol.Serializers
namespace Microsoft.SqlTools.ServiceLayer.ServiceHost.Protocol.Serializers
{
/// <summary>
/// Serializes messages in the JSON RPC format. Used primarily

View File

@@ -6,7 +6,7 @@
using Newtonsoft.Json.Linq;
using System;
namespace Microsoft.SqlTools.EditorServices.Protocol.MessageProtocol.Serializers
namespace Microsoft.SqlTools.ServiceLayer.ServiceHost.Protocol.Serializers
{
/// <summary>
/// Serializes messages in the V8 format. Used primarily for debug adapters.

View File

@@ -2,18 +2,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.EditorServices.Protocol.LanguageServer;
using Microsoft.SqlTools.EditorServices.Protocol.MessageProtocol;
using Microsoft.SqlTools.EditorServices.Protocol.MessageProtocol.Channel;
using Microsoft.SqlTools.EditorServices.Session;
using System.Threading.Tasks;
using Microsoft.SqlTools.EditorServices.Utility;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Linq;
using System;
using Microsoft.SqlTools.EditorServices;
using Microsoft.SqlTools.EditorServices.Protocol.LanguageServer;
using Microsoft.SqlTools.EditorServices.Session;
using Microsoft.SqlTools.EditorServices.Utility;
using Microsoft.SqlTools.ServiceLayer.ServiceHost.Protocol;
using Microsoft.SqlTools.ServiceLayer.ServiceHost.Protocol.Channel;
namespace Microsoft.SqlTools.ServiceLayer.ServiceHost
{

View File

@@ -3,10 +3,10 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using Microsoft.SqlTools.EditorServices.Protocol.LanguageServer;
using Microsoft.SqlTools.EditorServices.Protocol.MessageProtocol;
using Microsoft.SqlTools.EditorServices.Protocol.MessageProtocol.Channel;
using System.Threading.Tasks;
using Microsoft.SqlTools.EditorServices.Protocol.LanguageServer;
using Microsoft.SqlTools.ServiceLayer.ServiceHost.Protocol;
using Microsoft.SqlTools.ServiceLayer.ServiceHost.Protocol.Channel;
namespace Microsoft.SqlTools.ServiceLayer.ServiceHost
{