add storage check on configure
This commit is contained in:
@@ -185,6 +185,11 @@ namespace SimApi
|
|||||||
builder.UseForwardedHeaders();
|
builder.UseForwardedHeaders();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//请求一下检测存储错误
|
||||||
|
if(options.EnableSimApiStorage){
|
||||||
|
builder.ApplicationServices.GetService<SimApiStorage>();
|
||||||
|
}
|
||||||
|
|
||||||
return builder;
|
return builder;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user