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 Microsoft.SqlTools.EditorServices.Protocol.MessageProtocol.Serializers;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace Microsoft.SqlTools.EditorServices.Protocol.MessageProtocol.Channel namespace Microsoft.SqlTools.ServiceLayer.ServiceHost.Protocol.Channel
{ {
/// <summary> /// <summary>
/// Defines a base implementation for servers and their clients over a /// 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.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace Microsoft.SqlTools.EditorServices.Protocol.MessageProtocol.Channel namespace Microsoft.SqlTools.ServiceLayer.ServiceHost.Protocol.Channel
{ {
/// <summary> /// <summary>
/// Provides a client implementation for the standard I/O channel. /// Provides a client implementation for the standard I/O channel.

View File

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

View File

@@ -6,7 +6,7 @@
using Newtonsoft.Json; using Newtonsoft.Json;
using Newtonsoft.Json.Serialization; using Newtonsoft.Json.Serialization;
namespace Microsoft.SqlTools.EditorServices.Protocol.MessageProtocol namespace Microsoft.SqlTools.ServiceLayer.ServiceHost.Protocol
{ {
public static class Constants 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. // 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> /// <summary>
/// Defines an event type with a particular method name. /// Defines an event type with a particular method name.

View File

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

View File

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

View File

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

View File

@@ -4,8 +4,9 @@
// //
using System.Threading.Tasks; 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 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. // 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;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Threading; using System.Threading;
using System.Threading.Tasks; 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 public class MessageDispatcher
{ {

View File

@@ -5,7 +5,7 @@
using System; using System;
namespace Microsoft.SqlTools.EditorServices.Protocol.MessageProtocol namespace Microsoft.SqlTools.ServiceLayer.ServiceHost.Protocol
{ {
public class MessageParseException : Exception 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. // 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> /// <summary>
/// Defines the possible message protocol types. /// 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. // 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;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Threading.Tasks; 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 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. // 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.IO;
using System.Text; using System.Text;
using System.Threading.Tasks; 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 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. // 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;
using System.Collections.Generic; using System.Collections.Generic;
using System.Threading; using System.Threading;
using System.Threading.Tasks; 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> /// <summary>
/// Provides behavior for a client or server endpoint that /// 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. // 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 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> public class RequestContext<TResult>
{ {

View File

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

View File

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

View File

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

View File

@@ -2,18 +2,19 @@
// Copyright (c) Microsoft. All rights reserved. // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information. // 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 System.Threading.Tasks;
using Microsoft.SqlTools.EditorServices.Utility;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text; using System.Text;
using System.Threading; using System.Threading;
using System.Linq; using System.Linq;
using System; using System;
using Microsoft.SqlTools.EditorServices; 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 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. // 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 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 namespace Microsoft.SqlTools.ServiceLayer.ServiceHost
{ {