Fix namespaces for code moved to separate class libraries (#263)

* Create ServiceHost a service-specific class

* Renaming hosting namespace

* Rename credentials namespace

* Fix namespaces
This commit is contained in:
Karl Burtram
2017-03-02 14:41:06 -08:00
committed by GitHub
parent 1166778249
commit f00136cffb
219 changed files with 522 additions and 338 deletions

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.ServiceLayer.Hosting.Protocol.Contracts;
using Microsoft.SqlTools.ServiceLayer.Utility;
using Microsoft.SqlTools.Hosting.Protocol.Contracts;
using Microsoft.SqlTools.Utility;
namespace Microsoft.SqlTools.ServiceLayer.Credentials.Contracts
namespace Microsoft.SqlTools.Credentials.Contracts
{
/// <summary>
/// A Credential containing information needed to log into a resource. This is primarily

View File

@@ -6,14 +6,14 @@
using System;
using System.Runtime.InteropServices;
using System.Threading.Tasks;
using Microsoft.SqlTools.ServiceLayer.Credentials.Contracts;
using Microsoft.SqlTools.ServiceLayer.Credentials.Linux;
using Microsoft.SqlTools.ServiceLayer.Credentials.OSX;
using Microsoft.SqlTools.ServiceLayer.Credentials.Win32;
using Microsoft.SqlTools.ServiceLayer.Hosting.Protocol;
using Microsoft.SqlTools.ServiceLayer.Utility;
using Microsoft.SqlTools.Credentials.Contracts;
using Microsoft.SqlTools.Credentials.Linux;
using Microsoft.SqlTools.Credentials.OSX;
using Microsoft.SqlTools.Credentials.Win32;
using Microsoft.SqlTools.Hosting.Protocol;
using Microsoft.SqlTools.Utility;
namespace Microsoft.SqlTools.ServiceLayer.Credentials
namespace Microsoft.SqlTools.Credentials
{
/// <summary>
/// Service responsible for securing credentials in a platform-neutral manner. This provides

View File

@@ -3,9 +3,9 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using Microsoft.SqlTools.ServiceLayer.Credentials.Contracts;
using Microsoft.SqlTools.Credentials.Contracts;
namespace Microsoft.SqlTools.ServiceLayer.Credentials
namespace Microsoft.SqlTools.Credentials
{
/// <summary>
/// An <see cref="ICredentialStore"/> support securely saving and retrieving passwords

View File

@@ -7,7 +7,7 @@ using System;
using System.Runtime.InteropServices;
using System.Text;
namespace Microsoft.SqlTools.ServiceLayer.Credentials
namespace Microsoft.SqlTools.Credentials
{
internal static class InteropUtils
{

View File

@@ -4,9 +4,9 @@
//
using System.Collections.Generic;
using Microsoft.SqlTools.ServiceLayer.Credentials.Contracts;
using Microsoft.SqlTools.Credentials.Contracts;
namespace Microsoft.SqlTools.ServiceLayer.Credentials.Linux
namespace Microsoft.SqlTools.Credentials.Linux
{
/// <summary>
/// Simplified class to enable writing a set of credentials to/from disk

View File

@@ -6,12 +6,12 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Microsoft.SqlTools.ServiceLayer.Credentials.Contracts;
using Microsoft.SqlTools.ServiceLayer.Hosting.Protocol;
using Microsoft.SqlTools.ServiceLayer.Utility;
using Microsoft.SqlTools.Credentials.Contracts;
using Microsoft.SqlTools.Hosting.Protocol;
using Microsoft.SqlTools.Utility;
using Newtonsoft.Json;
namespace Microsoft.SqlTools.ServiceLayer.Credentials.Linux
namespace Microsoft.SqlTools.Credentials.Linux
{
#if !WINDOWS_ONLY_BUILD

View File

@@ -6,7 +6,7 @@
using System;
using System.Runtime.InteropServices;
namespace Microsoft.SqlTools.ServiceLayer.Credentials
namespace Microsoft.SqlTools.Credentials
{
#if !WINDOWS_ONLY_BUILD

View File

@@ -6,7 +6,7 @@
using System;
using System.Runtime.InteropServices;
namespace Microsoft.SqlTools.ServiceLayer.Credentials
namespace Microsoft.SqlTools.Credentials
{
#if !WINDOWS_ONLY_BUILD

View File

@@ -9,10 +9,10 @@ using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using Microsoft.SqlTools.ServiceLayer.Credentials.Contracts;
using Microsoft.SqlTools.ServiceLayer.Utility;
using Microsoft.SqlTools.Credentials.Contracts;
using Microsoft.SqlTools.Utility;
namespace Microsoft.SqlTools.ServiceLayer.Credentials.Linux
namespace Microsoft.SqlTools.Credentials.Linux
{
/// <summary>
/// Store configuration struct

View File

@@ -5,7 +5,7 @@
using System;
using System.Runtime.InteropServices;
namespace Microsoft.SqlTools.ServiceLayer.Credentials
namespace Microsoft.SqlTools.Credentials
{
internal static partial class Interop
{

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.ServiceLayer.Credentials
namespace Microsoft.SqlTools.Credentials
{
internal static partial class Interop
{

View File

@@ -6,7 +6,7 @@
using System;
using System.Runtime.InteropServices;
namespace Microsoft.SqlTools.ServiceLayer.Credentials
namespace Microsoft.SqlTools.Credentials
{
internal partial class Interop
{

View File

@@ -5,10 +5,10 @@
using System;
using System.Runtime.InteropServices;
using Microsoft.SqlTools.ServiceLayer.Credentials.Contracts;
using Microsoft.SqlTools.ServiceLayer.Utility;
using Microsoft.SqlTools.Credentials.Contracts;
using Microsoft.SqlTools.Utility;
namespace Microsoft.SqlTools.ServiceLayer.Credentials.OSX
namespace Microsoft.SqlTools.Credentials.OSX
{
#if !WINDOWS_ONLY_BUILD

View File

@@ -5,7 +5,7 @@
using System;
using System.Runtime.InteropServices;
namespace Microsoft.SqlTools.ServiceLayer.Credentials
namespace Microsoft.SqlTools.Credentials
{
/// <summary>

View File

@@ -7,7 +7,7 @@ using System;
using System.Runtime.InteropServices;
using System.Security;
namespace Microsoft.SqlTools.ServiceLayer.Credentials.Win32
namespace Microsoft.SqlTools.Credentials
{
internal static class SecureStringHelper
{

View File

@@ -8,9 +8,9 @@ using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.InteropServices;
using Microsoft.SqlTools.ServiceLayer.Utility;
using Microsoft.SqlTools.Utility;
namespace Microsoft.SqlTools.ServiceLayer.Credentials.Win32
namespace Microsoft.SqlTools.Credentials.Win32
{
public class CredentialSet: List<Win32Credential>, IDisposable
{

View File

@@ -3,7 +3,7 @@
// Licensed under the Apache License 2.0
//
namespace Microsoft.SqlTools.ServiceLayer.Credentials.Win32
namespace Microsoft.SqlTools.Credentials.Win32
{
public enum CredentialType: uint
{

View File

@@ -6,9 +6,8 @@
using System;
using System.Runtime.InteropServices;
using System.Text;
using Microsoft.SqlTools.Credentials;
namespace Microsoft.SqlTools.ServiceLayer.Credentials.Win32
namespace Microsoft.SqlTools.Credentials.Win32
{
internal class NativeMethods
{

View File

@@ -3,7 +3,7 @@
// Licensed under the Apache License 2.0
//
namespace Microsoft.SqlTools.ServiceLayer.Credentials.Win32
namespace Microsoft.SqlTools.Credentials.Win32
{
public enum PersistanceType : uint
{

View File

@@ -7,9 +7,8 @@ using System;
using System.Runtime.InteropServices;
using System.Security;
using System.Text;
using Microsoft.SqlTools.Credentials;
namespace Microsoft.SqlTools.ServiceLayer.Credentials.Win32
namespace Microsoft.SqlTools.Credentials.Win32
{
public class Win32Credential: IDisposable
{

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.ServiceLayer.Credentials.Contracts;
using Microsoft.SqlTools.ServiceLayer.Utility;
using Microsoft.SqlTools.Credentials.Contracts;
using Microsoft.SqlTools.Utility;
namespace Microsoft.SqlTools.ServiceLayer.Credentials.Win32
namespace Microsoft.SqlTools.Credentials.Win32
{
/// <summary>
/// Win32 implementation of the credential store