.NET Format Style Fixes

This commit is contained in:
refringe
2025-06-18 17:09:20 +00:00
committed by Format Bot
parent ca0a7d6345
commit 6e01428b2b
774 changed files with 23507 additions and 40003 deletions
+5 -4
View File
@@ -21,20 +21,21 @@ public class DI
}
var services = new ServiceCollection();
var jsonUtil = new JsonUtil([ new SptJsonConverterRegistrator() ]);
var jsonUtil = new JsonUtil([new SptJsonConverterRegistrator()]);
var mathUtil = new MathUtil();
services.AddSingleton<JsonUtil>(jsonUtil);
services.AddSingleton<MathUtil>(mathUtil);
services.AddSingleton<ICloner,JsonCloner>();
services.AddSingleton<ISptLogger<RandomUtil>,MockLogger<RandomUtil>>();
services.AddSingleton<ICloner, JsonCloner>();
services.AddSingleton<ISptLogger<RandomUtil>, MockLogger<RandomUtil>>();
services.AddSingleton<RandomUtil>();
services.AddSingleton<HashUtil>();
_serviceProvider = services.BuildServiceProvider();
}
public static T GetService<T>() where T : notnull
public static T GetService<T>()
where T : notnull
{
return _serviceProvider.GetRequiredService<T>();
}