updated namspaces
This commit is contained in:
Родитель
62a1917309
Коммит
2de0b1d24e
|
@ -15,7 +15,6 @@ using System.Collections.Generic;
|
|||
using System.Linq;
|
||||
using System.Net.Http;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.Toolkit.Services.Exceptions;
|
||||
|
||||
namespace Microsoft.Toolkit.Services
|
||||
{
|
||||
|
|
|
@ -12,10 +12,9 @@
|
|||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
using Microsoft.Toolkit.Extensions;
|
||||
using Microsoft.Toolkit.Services.Bing;
|
||||
|
||||
namespace Microsoft.Toolkit.Services.Core
|
||||
namespace Microsoft.Toolkit.Services
|
||||
{
|
||||
/// <summary>
|
||||
/// This class offers general purpose methods.
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Microsoft.Toolkit.Services.Core
|
||||
namespace Microsoft.Toolkit.Services
|
||||
{
|
||||
/// <summary>
|
||||
/// Generic interface that all deployed service providers implement.
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.Toolkit.Services.Exceptions
|
||||
namespace Microsoft.Toolkit.Services
|
||||
{
|
||||
/// <summary>
|
||||
/// Exception for null Config.
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.Toolkit.Services.Exceptions
|
||||
namespace Microsoft.Toolkit.Services
|
||||
{
|
||||
/// <summary>
|
||||
/// Exception for config parameter being null.
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.Toolkit.Services.Exceptions
|
||||
namespace Microsoft.Toolkit.Services
|
||||
{
|
||||
/// <summary>
|
||||
/// Exception for no OAuth keys being present.
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.Toolkit.Services.Exceptions
|
||||
namespace Microsoft.Toolkit.Services
|
||||
{
|
||||
/// <summary>
|
||||
/// Exception for revoked OAuth keys.
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.Toolkit.Services.Exceptions
|
||||
namespace Microsoft.Toolkit.Services
|
||||
{
|
||||
/// <summary>
|
||||
/// Exception for null Parser.
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
using System;
|
||||
using System.Net;
|
||||
|
||||
namespace Microsoft.Toolkit.Services.Exceptions
|
||||
namespace Microsoft.Toolkit.Services
|
||||
{
|
||||
/// <summary>
|
||||
/// Exception for failed requests.
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.Toolkit.Services.Exceptions
|
||||
namespace Microsoft.Toolkit.Services
|
||||
{
|
||||
/// <summary>
|
||||
/// Exception for too many requests.
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.Toolkit.Services.Exceptions
|
||||
namespace Microsoft.Toolkit.Services
|
||||
{
|
||||
/// <summary>
|
||||
/// Exception for user not found.
|
||||
|
|
|
@ -16,8 +16,6 @@ using System.Globalization;
|
|||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.Toolkit.Services.Core;
|
||||
using Microsoft.Toolkit.Services.Exceptions;
|
||||
|
||||
namespace Microsoft.Toolkit.Services.Bing
|
||||
{
|
||||
|
|
|
@ -15,7 +15,6 @@ using System.Linq;
|
|||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.Toolkit.Collections;
|
||||
using Microsoft.Toolkit.Services.Core;
|
||||
|
||||
namespace Microsoft.Toolkit.Services.Bing
|
||||
{
|
||||
|
|
|
@ -15,7 +15,6 @@ using System.Net.Http.Headers;
|
|||
using System.Threading.Tasks;
|
||||
using Microsoft.Graph;
|
||||
using Microsoft.Identity.Client;
|
||||
using Microsoft.Toolkit.Services.MicrosoftGraph.Platform;
|
||||
using static Microsoft.Toolkit.Services.MicrosoftGraph.MicrosoftGraphEnums;
|
||||
|
||||
namespace Microsoft.Toolkit.Services.MicrosoftGraph
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Microsoft.Toolkit.Services.MicrosoftGraph.Platform
|
||||
namespace Microsoft.Toolkit.Services.MicrosoftGraph
|
||||
{
|
||||
/// <summary>
|
||||
/// Platform-specific implementation to retrieve graph photos.
|
||||
|
|
|
@ -14,10 +14,9 @@ using System.IO;
|
|||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.Graph;
|
||||
using Microsoft.Toolkit.Services.MicrosoftGraph.Platform;
|
||||
using Windows.Storage.Streams;
|
||||
|
||||
namespace Microsoft.Toolkit.Services.MicrosoftGraph.Platform
|
||||
namespace Microsoft.Toolkit.Services.MicrosoftGraph.Uwp
|
||||
{
|
||||
/// <summary>
|
||||
/// Platform-specific implementation to capture photo.
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.Graph;
|
||||
using Microsoft.Toolkit.Services.MicrosoftGraph.Platform;
|
||||
|
||||
namespace Microsoft.Toolkit.Services.MicrosoftGraph
|
||||
{
|
||||
|
@ -42,7 +41,7 @@ namespace Microsoft.Toolkit.Services.MicrosoftGraph
|
|||
/// </summary>
|
||||
/// <param name="graphProvider">Instance of GraphClientService class</param>
|
||||
public MicrosoftGraphUserService(GraphServiceClient graphProvider)
|
||||
: this(graphProvider, new MicrosoftGraphUserServicePhotos(graphProvider))
|
||||
: this(graphProvider, new Uwp.MicrosoftGraphUserServicePhotos(graphProvider))
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -14,8 +14,6 @@ using System;
|
|||
using System.Threading.Tasks;
|
||||
using Microsoft.Identity.Client;
|
||||
using Microsoft.Toolkit.Services.MicrosoftGraph;
|
||||
using Microsoft.Toolkit.Services.MicrosoftGraph.Platform;
|
||||
using Microsoft.Toolkit.Services.OneDrive.Platform;
|
||||
|
||||
namespace Microsoft.Toolkit.Services.OneDrive
|
||||
{
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.Graph;
|
||||
using Microsoft.Toolkit.Services.OneDrive.Platform;
|
||||
|
||||
namespace Microsoft.Toolkit.Services.OneDrive
|
||||
{
|
||||
|
|
|
@ -15,7 +15,6 @@ using System.Linq;
|
|||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.Graph;
|
||||
using Microsoft.Toolkit.Services.OneDrive.Platform;
|
||||
using static Microsoft.Toolkit.Services.MicrosoftGraph.MicrosoftGraphEnums;
|
||||
|
||||
namespace Microsoft.Toolkit.Services.OneDrive
|
||||
|
|
|
@ -16,7 +16,6 @@ using System.Text;
|
|||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.Graph;
|
||||
using Microsoft.Toolkit.Services.OneDrive.Platform;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Microsoft.Toolkit.Services.OneDrive
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Microsoft.Toolkit.Services.OneDrive.Platform
|
||||
namespace Microsoft.Toolkit.Services.OneDrive
|
||||
{
|
||||
/// <summary>
|
||||
/// Background service interface.
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
// THE CODE OR THE USE OR OTHER DEALINGS IN THE CODE.
|
||||
// ******************************************************************
|
||||
|
||||
namespace Microsoft.Toolkit.Services.OneDrive.Platform
|
||||
namespace Microsoft.Toolkit.Services.OneDrive
|
||||
{
|
||||
/// <summary>
|
||||
/// Platform abstraction.
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Microsoft.Toolkit.Services.OneDrive.Platform
|
||||
namespace Microsoft.Toolkit.Services.OneDrive
|
||||
{
|
||||
/// <summary>
|
||||
/// Platform abstraction.
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Microsoft.Toolkit.Services.OneDrive.Platform
|
||||
namespace Microsoft.Toolkit.Services.OneDrive
|
||||
{
|
||||
/// <summary>
|
||||
/// Platform abstraction.
|
||||
|
|
|
@ -14,7 +14,7 @@ using System.Threading;
|
|||
using System.Threading.Tasks;
|
||||
using static Microsoft.Toolkit.Services.MicrosoftGraph.MicrosoftGraphEnums;
|
||||
|
||||
namespace Microsoft.Toolkit.Services.OneDrive.Platform
|
||||
namespace Microsoft.Toolkit.Services.OneDrive
|
||||
{
|
||||
/// <summary>
|
||||
/// Platform abstraction.
|
||||
|
|
|
@ -14,7 +14,6 @@ using System;
|
|||
using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.Toolkit.Services.OneDrive.Platform;
|
||||
using Windows.Networking.BackgroundTransfer;
|
||||
using Windows.Storage;
|
||||
|
||||
|
|
|
@ -10,8 +10,6 @@
|
|||
// THE CODE OR THE USE OR OTHER DEALINGS IN THE CODE.
|
||||
// ******************************************************************
|
||||
|
||||
using Microsoft.Toolkit.Services.OneDrive.Platform;
|
||||
|
||||
namespace Microsoft.Toolkit.Services.OneDrive.Uwp
|
||||
{
|
||||
/// <summary>
|
||||
|
|
|
@ -16,7 +16,6 @@ using System.Linq;
|
|||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.Graph;
|
||||
using Microsoft.Toolkit.Services.OneDrive.Platform;
|
||||
using Windows.Networking.BackgroundTransfer;
|
||||
using Windows.Storage;
|
||||
using Windows.Storage.Streams;
|
||||
|
|
|
@ -18,7 +18,6 @@ using System.Text;
|
|||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.Graph;
|
||||
using Microsoft.Toolkit.Services.OneDrive.Platform;
|
||||
using Microsoft.Toolkit.Uwp;
|
||||
using Newtonsoft.Json;
|
||||
using Windows.Storage;
|
||||
|
|
|
@ -15,7 +15,6 @@ using System.Threading;
|
|||
using System.Threading.Tasks;
|
||||
using Microsoft.Graph;
|
||||
using Microsoft.Toolkit.Services.MicrosoftGraph;
|
||||
using Microsoft.Toolkit.Services.OneDrive.Platform;
|
||||
using Windows.Storage;
|
||||
using Windows.Storage.Streams;
|
||||
using static Microsoft.Toolkit.Services.MicrosoftGraph.MicrosoftGraphEnums;
|
||||
|
|
|
@ -17,6 +17,7 @@ using System.Linq;
|
|||
using System.Net.Http;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.Toolkit.Services;
|
||||
using Windows.Data.Json;
|
||||
using Windows.Security.Authentication.Web;
|
||||
using Windows.Security.Credentials;
|
||||
|
@ -175,7 +176,7 @@ namespace Microsoft.Toolkit.Uwp.Services.LinkedIn
|
|||
return parser.Parse(data);
|
||||
}
|
||||
|
||||
throw new Toolkit.Services.Exceptions.RequestFailedException((System.Net.HttpStatusCode)response.StatusCode, data);
|
||||
throw new RequestFailedException((System.Net.HttpStatusCode)response.StatusCode, data);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -228,7 +229,7 @@ namespace Microsoft.Toolkit.Uwp.Services.LinkedIn
|
|||
{
|
||||
if (config?.Query == null)
|
||||
{
|
||||
throw new Toolkit.Services.Exceptions.ConfigParameterNullException(nameof(config.Query));
|
||||
throw new ConfigParameterNullException(nameof(config.Query));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ using System.Net.Http;
|
|||
using System.Net.Http.Headers;
|
||||
using System.Runtime.InteropServices.WindowsRuntime;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.Toolkit.Services.Exceptions;
|
||||
using Microsoft.Toolkit.Services;
|
||||
using Newtonsoft.Json;
|
||||
using Windows.Security.Authentication.Web;
|
||||
using Windows.Security.Credentials;
|
||||
|
|
Загрузка…
Ссылка в новой задаче