我已按照文档(和许多博客)将 blazor 组件添加到 razor Pages 应用程序。剃刀页面完美地呈现组件,但随后立即“尝试重新连接”,但总是失败。控制台输出显示(显然在本地主机上运行):
[2020-07-20T00:22:59.957Z] Information: Normalizing '_blazor' to 'https://localhost:44306/_blazor'.
blazor.server.js:1 [2020-07-20T00:22:59.961Z] Debug: Starting HubConnection.
blazor.server.js:1 [2020-07-20T00:22:59.969Z] Debug: Starting connection with transfer format 'Binary'.
blazor.server.js:1 [2020-07-20T00:22:59.970Z] Debug: Sending negotiation request: https://localhost:44306/_blazor/negotiate?negotiateVersion=1.
blazor.server.js:1 [2020-07-20T00:23:00.145Z] Debug: Selecting transport 'WebSockets'.
blazor.server.js:1 [2020-07-20T00:23:00.174Z] Information: WebSocket connected to wss://localhost:44306/_blazor?id=vuY411dkAsPan4fQrNN3aw.
blazor.server.js:1 [2020-07-20T00:23:00.175Z] Debug: The HttpConnection connected successfully.
blazor.server.js:1 [2020-07-20T00:23:00.175Z] Debug: Sending handshake request.
blazor.server.js:1 [2020-07-20T00:23:00.176Z] Information: Using HubProtocol 'blazorpack'.
blazor.server.js:1 [2020-07-20T00:23:00.182Z] Debug: Server handshake complete.
blazor.server.js:1 [2020-07-20T00:23:00.182Z] Debug: HubConnection connected successfully.
blazor.server.js:1 …Run Code Online (Sandbox Code Playgroud) 此处的文档(https://docs.microsoft.com/zh-cn/azure/storage/storage-use-emulator)说,端点应采用以下格式访问模拟表存储:
http://127.0.0.1:10002/<account-name>/<resource-path>
Run Code Online (Sandbox Code Playgroud)
但是,如何从模拟器中获取<account-name>和<resource-path>项目?
有人知道可以连接到仿真器的有效演示吗?我似乎发现的唯一一个连接到Azure。