mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-22 01:16:17 +08:00
20 lines
680 B
C#
20 lines
680 B
C#
using System.Application.Services;
|
|
using System.Application.Services.Implementation;
|
|
|
|
// ReSharper disable once CheckNamespace
|
|
namespace Microsoft.Extensions.DependencyInjection
|
|
{
|
|
public static class ServiceCollectionExtensions
|
|
{
|
|
/// <summary>
|
|
/// 添加主线程助手类(MainThreadDesktop)服务
|
|
/// </summary>
|
|
/// <param name="services"></param>
|
|
/// <returns></returns>
|
|
public static IServiceCollection AddMainThreadPlatformService(this IServiceCollection services)
|
|
{
|
|
services.AddSingleton<IMainThreadPlatformService, MainThreadPlatformServiceImpl>();
|
|
return services;
|
|
}
|
|
}
|
|
} |