add win10/uwp apis and SecurityStorage impl

This commit is contained in:
Aigio Liu
2021-03-08 00:33:22 +08:00
parent b528b21cf7
commit 3235f1d980
9 changed files with 166 additions and 9 deletions
@@ -1,6 +1,7 @@
using System;
using System.Application.Services;
using System.Application.Services.Implementation;
using System.Security;
// ReSharper disable once CheckNamespace
namespace Microsoft.Extensions.DependencyInjection
@@ -18,6 +19,10 @@ namespace Microsoft.Extensions.DependencyInjection
{
services.AddSingleton<IDesktopPlatformService, WindowsDesktopPlatformServiceImpl>();
services.AddSingleton<ISteamworksLocalApiService, SteamworksLocalApiServiceImpl>();
if (Environment.OSVersion.Version.Major >= 10)
{
services.AddSingleton<IStorage, Windows10DesktopClientStorage>();
}
}
else
{