This commit is contained in:
2020-06-04 19:24:49 +00:00
parent 5adf4aabcf
commit e68d1c48d2
5 changed files with 54 additions and 19 deletions

View File

@@ -28,6 +28,10 @@ namespace AyaNova.Util
{
get
{
// System.Diagnostics.Debug.WriteLine((new System.Diagnostics.StackTrace()).GetFrame(1).GetMethod().Name);
// System.Diagnostics.Debug.WriteLine((new System.Diagnostics.StackTrace()).ToString().Substring(56,80));
return Scope.ServiceProvider.GetRequiredService<AyContext>();
}
}
@@ -39,7 +43,7 @@ namespace AyaNova.Util
return Scope.ServiceProvider.GetRequiredService<AyaNova.Api.ControllerHelpers.ApiServerState>();
}
}
// https://docs.microsoft.com/en-us/aspnet/core/fundamentals/http-requests?view=aspnetcore-3.1
internal static System.Net.Http.IHttpClientFactory HttpClientFactory
{