mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-03-28 09:59:49 +08:00
16 lines
295 B
C#
16 lines
295 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace MicaSetup.Services;
|
|
|
|
#pragma warning disable CS8618
|
|
|
|
public class ServiceManager
|
|
{
|
|
public static ServiceProvider Services { get; set; }
|
|
|
|
public static T GetService<T>()
|
|
{
|
|
return Services.GetService<T>()!;
|
|
}
|
|
}
|