log 2019/10/16

Added more path mappings to labels (#15034) · aspnet/AspNetCore@666fe9b · GitHub Enabling PR auto-labeling (#15020) · aspnet/AspNetCore@d40fd32 · GitHub

.github/labeler.yml ってなんだろと思ったら、Github Actions だった。

GitHub - actions/labeler: An action for automatically labelling pull requests

Update .ghal.rules.json (#15118) · aspnet/AspNetCore.Docs@eadfbb0 · GitHub

Docs の方は .ghal.rules.json というので同じく Auto labeler を実行している。


Fixed up explanation of "Special case formatters". (#15121) · aspnet/AspNetCore.Docs@ecf1ede · GitHub

以下の formatting のドキュメントの更新。
Format response data in ASP.NET Core Web API | Microsoft Docs

修正のメインは TextOutputFormatterStringOutputFormatter に変更されている部分。

このドキュメント自体は、API response の body を JSONXML にフォーマットする部分についてだが、Accept header でのパターンや URL に入っているパターンなども対応されているのが理解できた。


Blazor 3.1 Preview Updates (#15111) · aspnet/AspNetCore.Docs@9f4646a · GitHub

Blazor 3.1 preview 用の更新。 dotnet new blazorwasm があるんだなぁ。


Hosting startup updates for 3.0 (#14607) · aspnet/AspNetCore.Docs@5d6eba2 · GitHub

以下のドキュメントの修正。
Use hosting startup assemblies in ASP.NET Core | Microsoft Docs

hosting startup 自体知らなかったのだが面白そう。

An IHostingStartup (hosting startup) implementation adds enhancements to an app at startup from an external assembly. For example, an external library can use a hosting startup implementation to provide additional configuration providers or services to an app.

configuration と services に言及されているが、Controllers と Views も追加できると Rails の mountable engine みたく使えそうだけど、ASP.NET Core は Razor Pages とかもあるし、そう単純にはいかないか。

というか別途 Razor class library というのがあった。

Reusable Razor UI in class libraries with ASP.NET Core | Microsoft Docs


Updates to web API tutorial (#15108) · aspnet/AspNetCore.Docs@591ffb6 · GitHub

以下の Web API 関連のチュートリアルの軽微な修正。
Tutorial: Create a web API with ASP.NET Core | Microsoft Docs
Tutorial: Call an ASP.NET Core web API with JavaScript | Microsoft Docs