log 2019/10/15
Hosted Services sample updates (#14765) · aspnet/AspNetCore.Docs@96dae2e · GitHub
以下のドキュメントの修正
Background tasks with hosted services in ASP.NET Core | Microsoft Docs
Hosted Service ってなんなんだと思っていたが、Console app でも作れるし使いどころありそう。
Implement background tasks in microservices with IHostedService and the BackgroundService class | Microsoft Docs
Identified cmdlet as Powershell (#15086) · aspnet/AspNetCore.Docs@7652afe · GitHub
以下のドキュメントの修正
Add a model to a Razor Pages app in ASP.NET Core | Microsoft Docs
dotnet aspnet-codegenerator
みたいなコマンドでモデルの追加もできるってのは知らなかった。便利そう。
dotnet aspnet-codegenerator command | Microsoft Docs
以下のドキュメントの更新。内容は微修正。
Filters in ASP.NET Core | Microsoft Docs
Filter は大きいカテゴリでも結構あるんだなぁ。
Localization 3.0 Updates (#14874) · aspnet/AspNetCore.Docs@5a11f68 · GitHub
Localization についてのドキュメントの変更。
Globalization and localization in ASP.NET Core | Microsoft Docs
Content-Language HTTP header
を使うようになる。ApplyCurrentCultureToResponseHeaders
を true に設定RequestLocalizationMiddleware
でCurrentUICulture
をContent-Language
にセットできるように- 明示的に
Content-Language
を response header に追加しなくていい - 3.0 からは
RequestLocalizationMiddleware
がDebug
レベルでサポートされていない culture について logging する。これまでは warn で出てたよ。
HTTP.sys options default max connections (#15079) · aspnet/AspNetCore.Docs@7906ab2 · GitHub
以下のドキュメントの修正。 HTTP.sys web server implementation in ASP.NET Core | Microsoft Docs
HTTP.sys web server に関して MaxConnections のデフォルト値の記述を修正。確かに description には registry の設定を使うとなっている。
なんで修正箇所が 3 箇所もあるのかと思ったが、3.0 より前、3.0, 3.1 で 3 つあるようだ。
Handle NewArrayExpression in entity equality · aspnet/EntityFrameworkCore@59fbd88 · GitHub
ss => ss.Set<Order>().OrderBy(o => o.OrderID).Where(o => o.OrderID < 10300) .Select(o => new object[] { o, o.Customer }),
上記のように Select
に Array を渡しても、いい感じに SQL にしてくれるように。