Swaggerを変えてみる
Thanks
リンクに記載の通り、WorkerServiceのログは以下のようにしないとイベントログに登録されません。
appsettings.json
{ "Logging": { "LogLevel": { "Default": "Information", "Microsoft": "Warning", "Microsoft.Hosting.Lifetime": "Information" }, "EventLog": { "LogLevel": { "Default": "Information", "Microsoft.Hosting.Lifetime": "Information" } } } }
Thanks!
属性ルーティング対応時に
Actions require an explicit HttpMethod binding for Swagger 2.0
[Route("hoge/dog/{dog}/type/{type}")]
[HttpGet]
[Route("hoge")] [HttpGet("dog/{dog}/type/{type}")]
はNG
[HttpGet("hoge/dog/{dog}/type/{type}")]
でOK!
c# - How to pass multiple parameters to a get method in ASP.NET Core - Stack Overflow
ASP.NET Core MVCのWebAPIでURLクエリパラメータを取得する方法 – kokoni
Thanks!