{"id":764,"date":"2023-09-13T13:23:56","date_gmt":"2023-09-13T04:23:56","guid":{"rendered":"https:\/\/sumomo.ohwaki.jp\/wordpress\/?p=764"},"modified":"2023-09-13T13:23:56","modified_gmt":"2023-09-13T04:23:56","slug":"net-8-rc1-blazor","status":"publish","type":"post","link":"https:\/\/sumomo.ohwaki.jp\/wordpress\/?p=764","title":{"rendered":".NET 8 RC1 Blazor"},"content":{"rendered":"\n<p>.NET 8 RC1(\u6b63\u78ba\u306b\u306fPreview 6?)\u304b\u3089blazorserver\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u304c\u7121\u304f\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u3002<\/p>\n\n\n\n<p>.NET Blog\u306b\u3088\u308b\u3068\u3001<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>.NET 8 \u3067\u306f\u3001Web UI \u306e\u3059\u3079\u3066\u306e\u30cb\u30fc\u30ba\u306b Blazor \u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u30d5\u30eb\u30b9\u30bf\u30c3\u30af\u3092\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3001Blazor \u306b\u6a5f\u80fd\u3092\u8ffd\u52a0\u3057\u3066\u304d\u307e\u3057\u305f\u3002 \u8981\u6c42\u306b\u5fdc\u3058\u3066\u30b5\u30fc\u30d0\u30fc\u304b\u3089 Blazor \u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u9759\u7684\u306b\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3057\u3001\u5f37\u5316\u3055\u308c\u305f\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u3068\u30d5\u30a9\u30fc\u30e0\u51e6\u7406\u3067\u30a8\u30af\u30b9\u30da\u30ea\u30a8\u30f3\u30b9\u3092\u6bb5\u968e\u7684\u306b\u5f37\u5316\u3057\u3001\u30b5\u30fc\u30d0\u30fc\u3067\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3055\u308c\u305f\u66f4\u65b0\u3092\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u3057\u3001Blazor Server \u307e\u305f\u306f Blazor WebAssembly \u3092\u4f7f\u7528\u3057\u3066\u5fc5\u8981\u306a\u5834\u5408\u306b\u8c4a\u304b\u306a\u5bfe\u8a71\u6a5f\u80fd\u3092\u8ffd\u52a0\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002 \u30a2\u30d7\u30ea\u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u3092\u6700\u9069\u5316\u3059\u308b\u305f\u3081\u306b\u3001Blazor \u306f\u5b9f\u884c\u6642\u306b Blazor Server \u3068 Blazor WebAssembly \u306e\u3069\u3061\u3089\u3092\u4f7f\u7528\u3059\u308b\u304b\u3092\u81ea\u52d5\u9078\u629e\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<\/blockquote>\n\n\n\n<p>\u3068\u306e\u3053\u3068\u3002<\/p>\n\n\n\n<p>Server Side\u306eBlazor\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u52d5\u304b\u3059\u306b\u306f\u3001blazor\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002\u3053\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u898b\u308b\u3068\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067Server Side\u3092\u4f7f\u7528\u3059\u308b\u3089\u3057\u3044\u3002<\/p>\n\n\n\n<div style=\"width:100%;overflow:auto;background-color:#0c0c0c;color:white\">-uw, &#8211;use-wasm Configures whether to support rendering components interactively in the browser using WebAssembly. <br\/>The default value is false.<br>Type: bool<br>Default: false<br><span style=\"color:pink;font-weight:bold\">-us, &#8211;use-server Configures whether to support rendering components interactively on the server via a SignalR WebSocket connection.<br>The default value is true.<\/span><br>Type: bool<br>Default: true<\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>\u3067\u3001blazor\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3067\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u4f5c\u3063\u3066\u307f\u305f\u306e\u3060\u304c\u3001\u30a4\u30d9\u30f3\u30c8\u306e\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0\u3068\u304b\u304c\u5168\u7136\u52d5\u4f5c\u3057\u306a\u3044\u3002.NET Blog\u306e\u8a18\u4e8b\u3092\u898b\u3066\u3082\u3088\u304f\u308f\u304b\u3089\u306a\u3044\u3057\u3001\u4ed6\u306e\u8a18\u4e8b\u3067\u3082RC1\u4ee5\u524d\u306e\u3082\u306e\u3070\u304b\u308a\u3067\u826f\u304f\u5206\u304b\u3089\u306a\u3044\u3002<\/p>\n\n\n\n<p>\u4ed5\u65b9\u306a\u3044\u306e\u3067\u3001\u30b5\u30f3\u30d7\u30eb\u306eCounter\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u898b\u3066\u307f\u308b\u3068\u3001\u5148\u982d\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u304c\u30fb\u30fb\u30fb<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-razor\" data-file=\"Counter.razor\" data-lang=\"RazorPage\"><code>@page &quot;\/counter&quot;\n@attribute [RenderModeServer]<\/code><\/pre><\/div>\n\n\n\n<p>\u3069\u3046\u3082\u3053\u306e\u5c5e\u6027\u3092\u6307\u5b9a\u3057\u306a\u3044\u3068\u3001\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u3067\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3055\u308c\u306a\u3044\u3088\u3046\u3060\u3002<\/p>\n\n\n\n<p>\u3068\u308a\u3042\u3048\u305a\u3001\u3053\u306e\u5c5e\u6027\u3092\u6307\u5b9a\u3057\u305f\u3089\u3001\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304c\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002<\/p>\n\n\n\n<p>\u7d50\u69cb\u3001\u7834\u58ca\u7684\u306a\u5909\u66f4\u3060\u3088\u306d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>.NET 8 RC1(\u6b63\u78ba\u306b\u306fPreview 6?)\u304b\u3089blazorserver &hellip; <a href=\"https:\/\/sumomo.ohwaki.jp\/wordpress\/?p=764\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18,12,10,4],"tags":[],"class_list":["post-764","post","type-post","status-publish","format-standard","hentry","category-net","category-asp-net-core","category-blazor","category-4"],"_links":{"self":[{"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/764","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=764"}],"version-history":[{"count":3,"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/764\/revisions"}],"predecessor-version":[{"id":767,"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/764\/revisions\/767"}],"wp:attachment":[{"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=764"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=764"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=764"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}