From a6f32c6e43aee660a8247b3e8e5acba25939a1ab Mon Sep 17 00:00:00 2001 From: xRain Date: Thu, 3 Jun 2021 15:35:26 +0800 Subject: [PATCH] add storage check on configure --- SimApiExtensions.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SimApiExtensions.cs b/SimApiExtensions.cs index d86a29b..b58607b 100644 --- a/SimApiExtensions.cs +++ b/SimApiExtensions.cs @@ -185,6 +185,11 @@ namespace SimApi builder.UseForwardedHeaders(); } + //请求一下检测存储错误 + if(options.EnableSimApiStorage){ + builder.ApplicationServices.GetService(); + } + return builder; } }