
Some checks failed
Build / Compute Version (push) Successful in 6s
Build / Build Nuget package (NuGet) (push) Successful in 3m38s
Build / Build Nuget package (CringeBootstrap.Abstractions) (push) Successful in 4m2s
Build / Build Nuget package (SharedCringe) (push) Successful in 4m1s
Build / Build Nuget package (CringePlugins) (push) Successful in 4m18s
Build / Build Launcher (push) Failing after 4m31s
global service provider with our stuff so we stop using statics everywhere polly retry policy for httpclient
13 lines
279 B
C#
13 lines
279 B
C#
using Sandbox;
|
|
|
|
namespace CringePlugins.Services;
|
|
|
|
public static class GameServicesExtension
|
|
{
|
|
internal static IServiceProvider GameServices { get; set; } = null!;
|
|
|
|
extension(MySandboxGame)
|
|
{
|
|
public static IServiceProvider Services => GameServices;
|
|
}
|
|
} |