mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-29 16:08:15 +08:00
add win10/uwp apis and SecurityStorage impl
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user