{"id":61274,"date":"2026-01-17T10:41:39","date_gmt":"2026-01-17T02:41:39","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/61274.html"},"modified":"2026-01-17T10:41:39","modified_gmt":"2026-01-17T02:41:39","slug":"net-10-%e4%b8%ad%e7%9a%84-asp-net-core%ef%bc%9ablazor%e3%80%81api-%e5%92%8c-openapi-%e7%9a%84%e9%87%8d%e5%a4%a7%e6%9b%b4%e6%96%b0","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/61274.html","title":{"rendered":".NET 10 \u4e2d\u7684 ASP.NET Core\uff1aBlazor\u3001API \u548c OpenAPI \u7684\u91cd\u5927\u66f4\u65b0"},"content":{"rendered":"<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"902\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260117024136-696af6e098679.png\" width=\"1600\" \/><\/p>\n<p><span style=\"color:#1c7331\">\u5982\u679c\u60a8\u559c\u6b22\u6b64\u6587\u7ae0&#xff0c;\u8bf7\u6536\u85cf\u3001\u70b9\u8d5e\u3001\u8bc4\u8bba&#xff0c;\u8c22\u8c22&#xff0c;\u795d\u60a8\u5feb\u4e50\u6bcf\u4e00\u5929\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#222222\"><span style=\"background-color:#ffffff\">\u5fae\u8f6f\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u4e0a\u4e2a\u6708\u53d1\u5e03\u7684 .NET 10\u7248\u672c\u4e2dASP.NET Core\u7684\u4e3b\u8981\u66f4\u65b0\u3002\u636e\u62a5\u9053&#xff0c;\u6b64\u7248\u672c\u5728 Blazor\u3001Minimal API\u3001OpenAPI \u751f\u6210\u3001\u8eab\u4efd\u9a8c\u8bc1\u548c\u6846\u67b6\u6574\u4f53\u6027\u80fd\u65b9\u9762\u90fd\u8fdb\u884c\u4e86\u5e7f\u6cdb\u7684\u6539\u8fdb\u3002\u6b64\u6b21\u66f4\u65b0\u88ab\u8a89\u4e3a\u8fc4\u4eca\u4e3a\u6b62\u6700\u5168\u9762\u7684 ASP.NET Core \u7248\u672c\u4e4b\u4e00&#xff0c;\u5176\u6539\u8fdb\u6db5\u76d6\u4e86\u5f00\u53d1\u3001\u8bca\u65ad\u3001\u8fd0\u884c\u65f6\u884c\u4e3a\u548c\u5b89\u5168\u6027\u7b49\u591a\u4e2a\u65b9\u9762\u3002<\/span><\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#222222\"><span style=\"background-color:#ffffff\">\u5fae\u8f6f\u8868\u793a&#xff0c;Blazor\u83b7\u5f97\u4e86\u6700\u5168\u9762\u7684\u589e\u5f3a\u529f\u80fd\u3002\u56e2\u961f\u4e3a Blazor Web Apps \u5f15\u5165\u4e86\u66f4\u65b0\u7684\u5b89\u5168\u793a\u4f8b&#xff0c;\u4e3aOpenID Connect\u3001Microsoft Entra ID\u548cWindows \u8eab\u4efd\u9a8c\u8bc1\u573a\u666f\u63d0\u4f9b\u4e86\u66f4\u6e05\u6670\u7684\u6307\u5bfc\u3002\u793a\u4f8b\u89e3\u51b3\u65b9\u6848\u73b0\u5728\u5305\u542b\u72ec\u7acb\u7684 API \u9879\u76ee&#xff0c;\u7528\u4e8e\u6f14\u793a\u5b89\u5168\u7684 Web API \u8c03\u7528&#xff0c;\u5e76\u4e14\u53ef\u4ee5\u901a\u8fc7 JSON \u8bbe\u7f6e\u6587\u4ef6\u63d0\u4f9b\u914d\u7f6e&#xff0c;\u4ece\u800c\u5b9e\u73b0\u66f4\u7075\u6d3b\u7684\u8bbe\u7f6e\u3002<\/span><\/span><\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"650\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260117024137-696af6e14f84b.png\" width=\"829\" \/><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#222222\"><span style=\"background-color:#ffffff\">Blazor \u7684\u5176\u4ed6\u6539\u8fdb\u5305\u62ec\u652f\u6301\u5ba2\u6237\u7aef\u6307\u7eb9\u8bc6\u522b\u3001\u66f4\u65b0\u4e86QuickGrid\u529f\u80fd\u3001\u6539\u8fdb\u4e86\u9759\u6001\u8d44\u6e90\u9884\u52a0\u8f7d\u3001\u66f4\u65b0\u4e86\u8def\u7531\u884c\u4e3a&#xff0c;\u4ee5\u53ca\u4fee\u6539\u4e86NavigationManager\u4ee5\u9632\u6b62\u4e0d\u5fc5\u8981\u7684\u6eda\u52a8\u3002Blazor \u6a21\u677f\u73b0\u5728\u5305\u542b\u4e00\u4e2a\u4e13\u7528\u7684\u91cd\u65b0\u8fde\u63a5 UI \u7ec4\u4ef6&#xff0c;\u4ee5\u6ee1\u8db3\u66f4\u4e25\u683c\u7684\u5185\u5bb9\u5b89\u5168\u7b56\u7565 (CSP)\u8981\u6c42\u3002\u6b64\u5916&#xff0c;\u8fd8\u65b0\u589e\u4e86\u5bf9\u65b0\u7684 JavaScript \u4e92\u64cd\u4f5c API \u7684\u652f\u6301\u3001\u6269\u5c55\u4e86\u72b6\u6001\u6301\u4e45\u6027\u3001\u6539\u8fdb\u4e86\u9a8c\u8bc1&#xff0c;\u5e76\u589e\u5f3a\u4e86 WebAssembly \u8bca\u65ad\u548c\u6027\u80fd\u5206\u6790\u529f\u80fd\u3002<\/span><\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#222222\"><span style=\"background-color:#ffffff\">\u5728\u6587\u6863\u4e2d&#xff0c;\u5fae\u8f6f\u5c55\u793a\u4e86\u5982\u4f55\u4f7f\u7528TypedResults.ServerSentEvents API\u5c06\u5fc3\u7387\u4e8b\u4ef6\u4ee5 JSON \u683c\u5f0f\u6d41\u5f0f\u4f20\u8f93\u7ed9\u5ba2\u6237\u7aef&#xff1a;<\/span><\/span><\/p>\n<p><span style=\"background-color:#f5f2f0\"><span style=\"color:#000000\">app.MapGet(&#034;\/json-item&#034;, (CancellationToken cancellationToken) &#061;&gt;<br \/>\n{<br \/>\n    async IAsyncEnumerable&lt;HeartRateRecord&gt; GetHeartRate(<br \/>\n        [EnumeratorCancellation] CancellationToken cancellationToken)<br \/>\n    {<br \/>\n        while (!cancellationToken.IsCancellationRequested)<br \/>\n        {<br \/>\n            var heartRate &#061; Random.Shared.Next(60, 100);<br \/>\n            yield return HeartRateRecord.Create(heartRate);<br \/>\n            await Task.Delay(2000, cancellationToken);<br \/>\n        }<br \/>\n    }<\/p>\n<p>    return TypedResults.ServerSentEvents(GetHeartRate(cancellationToken),<br \/>\n                                                  eventType: &#034;heartRate&#034;);<br \/>\n});<\/span><\/span> <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#222222\"><span style=\"background-color:#ffffff\">\u6b64\u5916&#xff0c;\u5fae\u8f6f\u8868\u793a&#xff0c;Minimal API\u65b0\u589e\u4e86\u5185\u7f6e\u9a8c\u8bc1\u652f\u6301\u3001\u6539\u8fdb\u4e86\u5bf9\u7a7a\u8868\u5355\u503c\u7684\u5904\u7406\u3001\u517c\u5bb9\u4e86\u66f4\u591a\u8bb0\u5f55\u7c7b\u578b&#xff0c;\u5e76\u4e0eIProblemDetailsS\u200b\u200bervice\u66f4\u7d27\u5bc6\u5730\u96c6\u6210&#xff0c;\u4ece\u800c\u63d0\u4f9b\u4e00\u81f4\u7684\u9519\u8bef\u54cd\u5e94\u3002\u8be5\u6846\u67b6\u73b0\u5728\u8fd8\u652f\u6301\u8fd4\u56de\u670d\u52a1\u5668\u53d1\u9001\u4e8b\u4ef6 (Server-Sent Events)&#xff0c;\u4ece\u800c\u7b80\u5316\u4e86\u5411\u5ba2\u6237\u7aef\u6d41\u5f0f\u4f20\u8f93\u6570\u636e\u7684\u6a21\u578b\u3002\u9a8c\u8bc1 API \u5df2\u8fc1\u79fb\u5230\u65b0\u7684\u547d\u540d\u7a7a\u95f4&#xff0c;\u4f7f\u5176\u53ef\u5728 HTTP \u573a\u666f\u4e4b\u5916\u4f7f\u7528\u3002<\/span><\/span><\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"652\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260117024137-696af6e18bc98.png\" width=\"1200\" \/><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#222222\"><span style=\"background-color:#ffffff\">ASP.NET Core \u4e2d\u7684OpenAPI \u652f\u6301\u5df2\u5f97\u5230\u663e\u8457\u66f4\u65b0&#xff0c;\u5b8c\u5168\u517c\u5bb9OpenAPI 3.1\u3002\u5fae\u8f6f\u8868\u793a&#xff0c;\u6b64\u6b21\u66f4\u65b0\u6539\u8fdb\u4e86\u67b6\u6784\u751f\u6210\u3001YAML \u8f93\u51fa\u652f\u6301\u3001XML \u6587\u6863\u5904\u7406\u4ee5\u53ca\u9488\u5bf9\u7279\u5b9a\u7aef\u70b9\u7684\u8f6c\u6362\u5668\u7684\u65b0\u9009\u9879\u3002\u5185\u90e8 OpenAPI.NET \u5e93\u5df2\u66f4\u65b0\u81f3 2.0 \u7248\u672c&#xff0c;\u8fd9\u867d\u7136\u4f1a\u7ed9\u4f7f\u7528\u81ea\u5b9a\u4e49\u8f6c\u6362\u5668\u7684\u5f00\u53d1\u8005\u5e26\u6765\u4e00\u4e9b\u4e0d\u517c\u5bb9\u7684\u53d8\u66f4&#xff0c;\u4f46\u4e5f\u63d0\u9ad8\u4e86\u751f\u6210\u6587\u6863\u7684\u51c6\u786e\u6027\u548c\u7075\u6d3b\u6027\u3002<\/span><\/span><\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"676\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260117024137-696af6e1d722d.png\" width=\"1200\" \/><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#222222\"><span style=\"background-color:#ffffff\">\u6b64\u6b21\u53d1\u5e03\u8fd8\u5f15\u5165\u4e86\u65b0\u7684\u8eab\u4efd\u9a8c\u8bc1\u548c\u6388\u6743\u6307\u6807&#xff0c;\u589e\u5f3a\u4e86\u53d7 Cookie \u8eab\u4efd\u9a8c\u8bc1\u4fdd\u62a4\u7684 API \u7aef\u70b9\u7684\u884c\u4e3a&#xff0c;\u5e76\u6269\u5c55\u4e86\u5bf9 ASP.NET Core Identity \u4e2d WebAuthn \u901a\u884c\u5bc6\u94a5\u7684\u652f\u6301\u3002\u5f02\u5e38\u5904\u7406\u65b9\u9762\u7684\u66f4\u65b0\u73b0\u5728\u5141\u8bb8\u6291\u5236\u8bca\u65ad\u8f93\u51fa&#xff0c;\u800c Kestrel \u548c HTTP.sys \u4e5f\u90fd\u5f97\u5230\u4e86\u6539\u8fdb&#xff1a;\u66f4\u597d\u5730\u5904\u7406*.localhost\u57df\u3001\u53ef\u81ea\u5b9a\u4e49\u5b89\u5168\u63cf\u8ff0\u7b26\u4ee5\u53ca\u5728\u5185\u5b58\u6c60\u4e2d\u81ea\u52a8\u9a71\u9010\u5185\u5b58\u4ee5\u51cf\u5c11\u8d44\u6e90\u4f7f\u7528\u3002<\/span><\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#222222\"><span style=\"background-color:#ffffff\">\u6b64\u5916&#xff0c;\u5fae\u8f6f\u8fd8\u65b0\u589e\u4e86\u5bf9\u4f7f\u7528\u9876\u7ea7\u8bed\u53e5\u7684\u5e94\u7528\u7a0b\u5e8f\u6d4b\u8bd5\u652f\u6301&#xff0c;\u63d0\u4f9b\u4e86\u4e00\u4e2a\u57fa\u4e8e System.Text.Json \u7684\u5168\u65b0 JSON Patch \u5b9e\u73b0&#xff0c;\u663e\u8457\u63d0\u5347\u4e86\u6027\u80fd&#xff0c;\u5e76\u6269\u5c55\u4e86 MVC \u548c Minimal API&#xff0c;\u4f7f\u5176\u652f\u6301\u57fa\u4e8e PipeReader \u7684 JSON \u89e3\u6790\u3002\u65b0\u589e\u7684\u8f85\u52a9\u65b9\u6cd5RedirectHttpResult.IsLocalUrl\u63d0\u4f9b\u4e86\u4e00\u79cd\u66f4\u5b89\u5168\u7684\u91cd\u5b9a\u5411\u76ee\u6807\u9a8c\u8bc1\u65b9\u5f0f\u3002<\/span><\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#222222\"><span style=\"background-color:#ffffff\">\u6b64\u7248\u672c\u4e2d\u7684\u5176\u4ed6\u66f4\u6539\u5305\u62ec Blazor WebAssembly \u7684\u70ed\u91cd\u8f7d\u6539\u8fdb\u3001\u5141\u8bb8\u7528\u6237\u5728\u65ad\u5f00\u8fde\u63a5\u540e\u6062\u590d\u4f1a\u8bdd\u7684\u7535\u8def\u72b6\u6001\u6301\u4e45\u6027\u3001PWA \u670d\u52a1\u5de5\u4f5c\u7ebf\u7a0b\u6ce8\u518c\u66f4\u65b0\u4ee5\u9632\u6b62\u7f13\u5b58\u95ee\u9898&#xff0c;\u4ee5\u53ca\u7528\u4e8e\u9690\u85cf\u8868\u5355\u5b57\u6bb5\u7684\u65b0 InputHidden \u7ec4\u4ef6\u3002<\/span><\/span><\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"400\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260117024138-696af6e23c636.png\" width=\"800\" \/><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#222222\"><span style=\"background-color:#ffffff\">\u6b64\u5916&#xff0c;ASP.NET Core Identity \u8fd8\u9488\u5bf9\u7528\u6237\u7ba1\u7406\u548c\u767b\u5f55\u8ddf\u8e2a\u63d0\u4f9b\u4e86\u7279\u5b9a\u6307\u6807&#xff0c;Blazor WebAssembly \u652f\u6301 UI \u6587\u5316\u8bbe\u7f6e&#xff0c;\u6539\u8fdb\u4e86 XML \u6ce8\u91ca\u5904\u7406&#xff0c;\u589e\u5f3a\u4e86\u6253\u5305\u5668\u53cb\u597d\u7684\u8f93\u51fa&#xff0c;\u6269\u5c55\u4e86 NotFound \u8def\u7531\u652f\u6301&#xff0c;\u6301\u4e45\u7ec4\u4ef6\u72b6\u6001\u7684\u5e8f\u5217\u5316\u53ef\u6269\u5c55\u6027&#xff0c;\u4ee5\u53ca\u4f7f\u7528\u65b0\u7684 .NET MAUI \u6307\u5357\u5bf9Hybrid Blazor\u8fdb\u884c\u4e86\u66f4\u65b0\u3002<\/span><\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#222222\"><span style=\"background-color:#ffffff\">\u611f\u5174\u8da3\u7684\u4f60\u53ef\u4ee5\u5728\u5fae\u8f6f\u5b98\u65b9\u6587\u6863\u7f51\u7ad9\u4e0a\u67e5\u770b\u5b8c\u6574\u7684\u53d1\u884c\u8bf4\u660e\u00a0\u548c\u91cd\u5927\u53d8\u66f4\u4fe1\u606f\u3002<\/span><\/span><\/p>\n<p><span style=\"color:#1c7331\">\u5982\u679c\u60a8\u559c\u6b22\u6b64\u6587\u7ae0&#xff0c;\u8bf7\u6536\u85cf\u3001\u70b9\u8d5e\u3001\u8bc4\u8bba&#xff0c;\u8c22\u8c22&#xff0c;\u795d\u60a8\u5feb\u4e50\u6bcf\u4e00\u5929\u3002<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u679c\u60a8\u559c\u6b22\u6b64\u6587\u7ae0&#xff0c;\u8bf7\u6536\u85cf\u3001\u70b9\u8d5e\u3001\u8bc4\u8bba&#xff0c;\u8c22\u8c22&#xff0c;\u795d\u60a8\u5feb\u4e50\u6bcf\u4e00\u5929\u3002<br \/>\n\u5fae\u8f6f\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u4e0a\u4e2a\u6708\u53d1\u5e03\u7684 .NET 10\u7248\u672c\u4e2dASP.NET Core\u7684\u4e3b\u8981\u66f4\u65b0\u3002\u636e\u62a5\u9053&#xff0c;\u6b64\u7248\u672c\u5728 Blazor\u3001Minimal API\u3001OpenAPI \u751f\u6210\u3001\u8eab\u4efd\u9a8c\u8bc1\u548c\u6846\u67b6\u6574\u4f53\u6027\u80fd\u65b9\u9762\u90fd\u8fdb\u884c\u4e86\u5e7f\u6cdb\u7684\u6539\u8fdb\u3002\u6b64\u6b21\u66f4\u65b0\u88ab\u8a89\u4e3a\u8fc4\u4eca\u4e3a\u6b62\u6700\u5168\u9762\u7684 ASP.NET Core \u7248\u672c\u4e4b\u4e00&#xff0c;\u5176\u6539\u8fdb\u6db5\u76d6\u4e86\u5f00\u53d1\u3001\u8bca\u65ad\u3001\u8fd0\u884c\u65f6\u884c\u4e3a\u548c\u5b89\u5168\u6027\u7b49\u591a\u4e2a\u65b9\u9762\u3002<br \/>\n\u5fae\u8f6f\u8868\u793a&amp;#<\/p>\n","protected":false},"author":2,"featured_media":61269,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[895,6472,2380,292],"topic":[],"class_list":["post-61274","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-net","tag-net10","tag-asp-net","tag-292"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>.NET 10 \u4e2d\u7684 ASP.NET Core\uff1aBlazor\u3001API \u548c OpenAPI \u7684\u91cd\u5927\u66f4\u65b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/61274.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\".NET 10 \u4e2d\u7684 ASP.NET Core\uff1aBlazor\u3001API \u548c OpenAPI \u7684\u91cd\u5927\u66f4\u65b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u5982\u679c\u60a8\u559c\u6b22\u6b64\u6587\u7ae0&#xff0c;\u8bf7\u6536\u85cf\u3001\u70b9\u8d5e\u3001\u8bc4\u8bba&#xff0c;\u8c22\u8c22&#xff0c;\u795d\u60a8\u5feb\u4e50\u6bcf\u4e00\u5929\u3002 \u5fae\u8f6f\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u4e0a\u4e2a\u6708\u53d1\u5e03\u7684 .NET 10\u7248\u672c\u4e2dASP.NET Core\u7684\u4e3b\u8981\u66f4\u65b0\u3002\u636e\u62a5\u9053&#xff0c;\u6b64\u7248\u672c\u5728 Blazor\u3001Minimal API\u3001OpenAPI \u751f\u6210\u3001\u8eab\u4efd\u9a8c\u8bc1\u548c\u6846\u67b6\u6574\u4f53\u6027\u80fd\u65b9\u9762\u90fd\u8fdb\u884c\u4e86\u5e7f\u6cdb\u7684\u6539\u8fdb\u3002\u6b64\u6b21\u66f4\u65b0\u88ab\u8a89\u4e3a\u8fc4\u4eca\u4e3a\u6b62\u6700\u5168\u9762\u7684 ASP.NET Core \u7248\u672c\u4e4b\u4e00&#xff0c;\u5176\u6539\u8fdb\u6db5\u76d6\u4e86\u5f00\u53d1\u3001\u8bca\u65ad\u3001\u8fd0\u884c\u65f6\u884c\u4e3a\u548c\u5b89\u5168\u6027\u7b49\u591a\u4e2a\u65b9\u9762\u3002 \u5fae\u8f6f\u8868\u793a&amp;#\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/61274.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-17T02:41:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260117024136-696af6e098679.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/61274.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/61274.html\",\"name\":\".NET 10 \u4e2d\u7684 ASP.NET Core\uff1aBlazor\u3001API \u548c OpenAPI \u7684\u91cd\u5927\u66f4\u65b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-17T02:41:39+00:00\",\"dateModified\":\"2026-01-17T02:41:39+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/61274.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/61274.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/61274.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\".NET 10 \u4e2d\u7684 ASP.NET Core\uff1aBlazor\u3001API \u548c OpenAPI \u7684\u91cd\u5927\u66f4\u65b0\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":".NET 10 \u4e2d\u7684 ASP.NET Core\uff1aBlazor\u3001API \u548c OpenAPI \u7684\u91cd\u5927\u66f4\u65b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/61274.html","og_locale":"zh_CN","og_type":"article","og_title":".NET 10 \u4e2d\u7684 ASP.NET Core\uff1aBlazor\u3001API \u548c OpenAPI \u7684\u91cd\u5927\u66f4\u65b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u5982\u679c\u60a8\u559c\u6b22\u6b64\u6587\u7ae0&#xff0c;\u8bf7\u6536\u85cf\u3001\u70b9\u8d5e\u3001\u8bc4\u8bba&#xff0c;\u8c22\u8c22&#xff0c;\u795d\u60a8\u5feb\u4e50\u6bcf\u4e00\u5929\u3002 \u5fae\u8f6f\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u4e0a\u4e2a\u6708\u53d1\u5e03\u7684 .NET 10\u7248\u672c\u4e2dASP.NET Core\u7684\u4e3b\u8981\u66f4\u65b0\u3002\u636e\u62a5\u9053&#xff0c;\u6b64\u7248\u672c\u5728 Blazor\u3001Minimal API\u3001OpenAPI \u751f\u6210\u3001\u8eab\u4efd\u9a8c\u8bc1\u548c\u6846\u67b6\u6574\u4f53\u6027\u80fd\u65b9\u9762\u90fd\u8fdb\u884c\u4e86\u5e7f\u6cdb\u7684\u6539\u8fdb\u3002\u6b64\u6b21\u66f4\u65b0\u88ab\u8a89\u4e3a\u8fc4\u4eca\u4e3a\u6b62\u6700\u5168\u9762\u7684 ASP.NET Core \u7248\u672c\u4e4b\u4e00&#xff0c;\u5176\u6539\u8fdb\u6db5\u76d6\u4e86\u5f00\u53d1\u3001\u8bca\u65ad\u3001\u8fd0\u884c\u65f6\u884c\u4e3a\u548c\u5b89\u5168\u6027\u7b49\u591a\u4e2a\u65b9\u9762\u3002 \u5fae\u8f6f\u8868\u793a&amp;#","og_url":"https:\/\/www.wsisp.com\/helps\/61274.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-17T02:41:39+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260117024136-696af6e098679.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/61274.html","url":"https:\/\/www.wsisp.com\/helps\/61274.html","name":".NET 10 \u4e2d\u7684 ASP.NET Core\uff1aBlazor\u3001API \u548c OpenAPI \u7684\u91cd\u5927\u66f4\u65b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-17T02:41:39+00:00","dateModified":"2026-01-17T02:41:39+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/61274.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/61274.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/61274.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":".NET 10 \u4e2d\u7684 ASP.NET Core\uff1aBlazor\u3001API \u548c OpenAPI \u7684\u91cd\u5927\u66f4\u65b0"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/61274","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=61274"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/61274\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/61269"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=61274"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=61274"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=61274"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=61274"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}