├── .gitignore ├── App.razor ├── BlazorApp.csproj ├── LICENSE ├── Pages └── Index.razor ├── Program.cs ├── Properties └── launchSettings.json ├── README.md ├── Services └── MessageService.cs ├── Shared └── MainLayout.razor ├── _Imports.razor ├── docs ├── README.md ├── _config.yml ├── _framework │ ├── _bin │ │ ├── BlazorApp.dll │ │ ├── BlazorApp.dll.gz │ │ ├── Microsoft.AspNetCore.Components.Web.dll │ │ ├── Microsoft.AspNetCore.Components.Web.dll.gz │ │ ├── Microsoft.AspNetCore.Components.WebAssembly.dll │ │ ├── Microsoft.AspNetCore.Components.WebAssembly.dll.gz │ │ ├── Microsoft.AspNetCore.Components.dll │ │ ├── Microsoft.AspNetCore.Components.dll.gz │ │ ├── Microsoft.Bcl.AsyncInterfaces.dll │ │ ├── Microsoft.Bcl.AsyncInterfaces.dll.gz │ │ ├── Microsoft.Extensions.Configuration.Abstractions.dll │ │ ├── Microsoft.Extensions.Configuration.Abstractions.dll.gz │ │ ├── Microsoft.Extensions.Configuration.Json.dll │ │ ├── Microsoft.Extensions.Configuration.Json.dll.gz │ │ ├── Microsoft.Extensions.Configuration.dll │ │ ├── Microsoft.Extensions.Configuration.dll.gz │ │ ├── Microsoft.Extensions.DependencyInjection.Abstractions.dll │ │ ├── Microsoft.Extensions.DependencyInjection.Abstractions.dll.gz │ │ ├── Microsoft.Extensions.DependencyInjection.dll │ │ ├── Microsoft.Extensions.DependencyInjection.dll.gz │ │ ├── Microsoft.Extensions.Logging.Abstractions.dll │ │ ├── Microsoft.Extensions.Logging.Abstractions.dll.gz │ │ ├── Microsoft.Extensions.Logging.dll │ │ ├── Microsoft.Extensions.Logging.dll.gz │ │ ├── Microsoft.Extensions.Options.dll │ │ ├── Microsoft.Extensions.Options.dll.gz │ │ ├── Microsoft.Extensions.Primitives.dll │ │ ├── Microsoft.Extensions.Primitives.dll.gz │ │ ├── Microsoft.JSInterop.WebAssembly.dll │ │ ├── Microsoft.JSInterop.WebAssembly.dll.gz │ │ ├── Microsoft.JSInterop.dll │ │ ├── Microsoft.JSInterop.dll.gz │ │ ├── System.Core.dll │ │ ├── System.Core.dll.gz │ │ ├── System.Runtime.CompilerServices.Unsafe.dll │ │ ├── System.Runtime.CompilerServices.Unsafe.dll.gz │ │ ├── System.Text.Encodings.Web.dll │ │ ├── System.Text.Encodings.Web.dll.gz │ │ ├── System.Text.Json.dll │ │ ├── System.Text.Json.dll.gz │ │ ├── System.dll │ │ ├── System.dll.gz │ │ ├── WebAssembly.Bindings.dll │ │ ├── WebAssembly.Bindings.dll.gz │ │ ├── mscorlib.dll │ │ └── mscorlib.dll.gz │ ├── blazor.boot.json │ ├── blazor.boot.json.gz │ ├── blazor.webassembly.js │ ├── blazor.webassembly.js.gz │ └── wasm │ │ ├── dotnet.3.2.0.js │ │ ├── dotnet.3.2.0.js.gz │ │ ├── dotnet.timezones.dat │ │ ├── dotnet.timezones.dat.gz │ │ ├── dotnet.wasm │ │ └── dotnet.wasm.gz ├── css │ └── app.css └── index.html └── wwwroot ├── css └── app.css └── index.html /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | 6 | # Runtime data 7 | pids 8 | *.pid 9 | *.seed 10 | 11 | # Directory for instrumented libs generated by jscoverage/JSCover 12 | lib-cov 13 | 14 | # Coverage directory used by tools like istanbul 15 | coverage 16 | 17 | # nyc test coverage 18 | .nyc_output 19 | 20 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 21 | .grunt 22 | 23 | # node-waf configuration 24 | .lock-wscript 25 | 26 | # Compiled binary addons (http://nodejs.org/api/addons.html) 27 | build/Release 28 | 29 | # Dependency directories 30 | node_modules 31 | jspm_packages 32 | typings 33 | 34 | # Optional npm cache directory 35 | .npm 36 | 37 | # Optional REPL history 38 | .node_repl_history 39 | 40 | # .NET compiled files 41 | bin 42 | obj -------------------------------------------------------------------------------- /App.razor: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |

Sorry, there's nothing at this address.

8 |
9 |
10 |
11 | -------------------------------------------------------------------------------- /BlazorApp.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netstandard2.1 5 | 3.0 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2020 Jason Watmore 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Pages/Index.razor: -------------------------------------------------------------------------------- 1 | @page "/" 2 | @inject IMessageService MessageService 3 | 4 |
5 |

Blazor WebAssembly Component Communication

6 |
7 | 8 | 9 |
10 |
11 | 12 | @code { 13 | private void SendMessage() 14 | { 15 | MessageService.SendMessage("Message from Home Component to Main Layout Component!"); 16 | } 17 | 18 | private void ClearMessages() 19 | { 20 | MessageService.ClearMessages(); 21 | } 22 | } -------------------------------------------------------------------------------- /Program.cs: -------------------------------------------------------------------------------- 1 | using BlazorApp.Services; 2 | using Microsoft.AspNetCore.Components.WebAssembly.Hosting; 3 | using Microsoft.Extensions.DependencyInjection; 4 | using System.Threading.Tasks; 5 | 6 | namespace BlazorApp 7 | { 8 | public class Program 9 | { 10 | public static async Task Main(string[] args) 11 | { 12 | var builder = WebAssemblyHostBuilder.CreateDefault(args); 13 | builder.RootComponents.Add("app"); 14 | 15 | builder.Services.AddSingleton(); 16 | 17 | await builder.Build().RunAsync(); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "iisSettings": { 3 | "windowsAuthentication": false, 4 | "anonymousAuthentication": true, 5 | "iisExpress": { 6 | "applicationUrl": "http://localhost:25181", 7 | "sslPort": 44330 8 | } 9 | }, 10 | "profiles": { 11 | "IIS Express": { 12 | "commandName": "IISExpress", 13 | "launchBrowser": true, 14 | "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}", 15 | "environmentVariables": { 16 | "ASPNETCORE_ENVIRONMENT": "Development" 17 | } 18 | }, 19 | "BlazorApp": { 20 | "commandName": "Project", 21 | "launchBrowser": true, 22 | "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}", 23 | "applicationUrl": "https://localhost:5001;http://localhost:5000", 24 | "environmentVariables": { 25 | "ASPNETCORE_ENVIRONMENT": "Development" 26 | } 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # blazor-webassembly-communication-between-components 2 | 3 | ASP.NET Core Blazor WebAssembly - Communication Between Components 4 | 5 | For documentation and demo see https://jasonwatmore.com/post/2020/07/30/aspnet-core-blazor-webassembly-communication-between-components -------------------------------------------------------------------------------- /Services/MessageService.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace BlazorApp.Services 4 | { 5 | public interface IMessageService 6 | { 7 | event Action OnMessage; 8 | void SendMessage(string message); 9 | void ClearMessages(); 10 | } 11 | 12 | public class MessageService : IMessageService 13 | { 14 | public event Action OnMessage; 15 | 16 | public void SendMessage(string message) 17 | { 18 | OnMessage?.Invoke(message); 19 | } 20 | 21 | public void ClearMessages() 22 | { 23 | OnMessage?.Invoke(null); 24 | } 25 | } 26 | } -------------------------------------------------------------------------------- /Shared/MainLayout.razor: -------------------------------------------------------------------------------- 1 | @inherits LayoutComponentBase 2 | @implements IDisposable 3 | @inject IMessageService MessageService 4 | 5 | 6 |
7 | @Body 8 | @foreach (var message in messages) 9 | { 10 |
@message
11 | } 12 |
13 | 14 | @code { 15 | private List messages = new List(); 16 | 17 | protected override void OnInitialized() 18 | { 19 | // subscribe to OnMessage event 20 | MessageService.OnMessage += MessageHandler; 21 | } 22 | 23 | public void Dispose() 24 | { 25 | // unsubscribe from OnMessage event 26 | MessageService.OnMessage -= MessageHandler; 27 | } 28 | 29 | private void MessageHandler(string message) 30 | { 31 | if (message != null) 32 | messages.Add(message); 33 | else 34 | messages.Clear(); 35 | 36 | StateHasChanged(); 37 | } 38 | } -------------------------------------------------------------------------------- /_Imports.razor: -------------------------------------------------------------------------------- 1 | @using Microsoft.AspNetCore.Components.Forms 2 | @using Microsoft.AspNetCore.Components.Routing 3 | @using Microsoft.AspNetCore.Components.Web 4 | @using Microsoft.JSInterop 5 | @using BlazorApp 6 | @using BlazorApp.Services 7 | @using BlazorApp.Shared 8 | -------------------------------------------------------------------------------- /docs/README.md: -------------------------------------------------------------------------------- 1 | # blazor-webassembly-communication-between-components 2 | 3 | Standalone demo of code hosted on GitHub Pages at https://cornflourblue.github.io/blazor-webassembly-communication-between-components/ -------------------------------------------------------------------------------- /docs/_config.yml: -------------------------------------------------------------------------------- 1 | # required to work with github pages 2 | include: 3 | - "_bin" 4 | - "_framework" -------------------------------------------------------------------------------- /docs/_framework/_bin/BlazorApp.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/BlazorApp.dll -------------------------------------------------------------------------------- /docs/_framework/_bin/BlazorApp.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/BlazorApp.dll.gz -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.AspNetCore.Components.Web.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/Microsoft.AspNetCore.Components.Web.dll -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.AspNetCore.Components.Web.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/Microsoft.AspNetCore.Components.Web.dll.gz -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.AspNetCore.Components.WebAssembly.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/Microsoft.AspNetCore.Components.WebAssembly.dll -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.AspNetCore.Components.WebAssembly.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/Microsoft.AspNetCore.Components.WebAssembly.dll.gz -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.AspNetCore.Components.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/Microsoft.AspNetCore.Components.dll -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.AspNetCore.Components.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/Microsoft.AspNetCore.Components.dll.gz -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Bcl.AsyncInterfaces.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/Microsoft.Bcl.AsyncInterfaces.dll -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Bcl.AsyncInterfaces.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/Microsoft.Bcl.AsyncInterfaces.dll.gz -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.Configuration.Abstractions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/Microsoft.Extensions.Configuration.Abstractions.dll -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.Configuration.Abstractions.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/Microsoft.Extensions.Configuration.Abstractions.dll.gz -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.Configuration.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/Microsoft.Extensions.Configuration.Json.dll -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.Configuration.Json.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/Microsoft.Extensions.Configuration.Json.dll.gz -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.Configuration.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/Microsoft.Extensions.Configuration.dll -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.Configuration.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/Microsoft.Extensions.Configuration.dll.gz -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.DependencyInjection.Abstractions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/Microsoft.Extensions.DependencyInjection.Abstractions.dll -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.DependencyInjection.Abstractions.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/Microsoft.Extensions.DependencyInjection.Abstractions.dll.gz -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.DependencyInjection.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/Microsoft.Extensions.DependencyInjection.dll -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.DependencyInjection.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/Microsoft.Extensions.DependencyInjection.dll.gz -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.Logging.Abstractions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/Microsoft.Extensions.Logging.Abstractions.dll -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.Logging.Abstractions.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/Microsoft.Extensions.Logging.Abstractions.dll.gz -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.Logging.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/Microsoft.Extensions.Logging.dll -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.Logging.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/Microsoft.Extensions.Logging.dll.gz -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.Options.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/Microsoft.Extensions.Options.dll -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.Options.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/Microsoft.Extensions.Options.dll.gz -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.Primitives.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/Microsoft.Extensions.Primitives.dll -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.Primitives.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/Microsoft.Extensions.Primitives.dll.gz -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.JSInterop.WebAssembly.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/Microsoft.JSInterop.WebAssembly.dll -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.JSInterop.WebAssembly.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/Microsoft.JSInterop.WebAssembly.dll.gz -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.JSInterop.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/Microsoft.JSInterop.dll -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.JSInterop.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/Microsoft.JSInterop.dll.gz -------------------------------------------------------------------------------- /docs/_framework/_bin/System.Core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/System.Core.dll -------------------------------------------------------------------------------- /docs/_framework/_bin/System.Core.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/System.Core.dll.gz -------------------------------------------------------------------------------- /docs/_framework/_bin/System.Runtime.CompilerServices.Unsafe.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/System.Runtime.CompilerServices.Unsafe.dll -------------------------------------------------------------------------------- /docs/_framework/_bin/System.Runtime.CompilerServices.Unsafe.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/System.Runtime.CompilerServices.Unsafe.dll.gz -------------------------------------------------------------------------------- /docs/_framework/_bin/System.Text.Encodings.Web.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/System.Text.Encodings.Web.dll -------------------------------------------------------------------------------- /docs/_framework/_bin/System.Text.Encodings.Web.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/System.Text.Encodings.Web.dll.gz -------------------------------------------------------------------------------- /docs/_framework/_bin/System.Text.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/System.Text.Json.dll -------------------------------------------------------------------------------- /docs/_framework/_bin/System.Text.Json.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/System.Text.Json.dll.gz -------------------------------------------------------------------------------- /docs/_framework/_bin/System.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/System.dll -------------------------------------------------------------------------------- /docs/_framework/_bin/System.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/System.dll.gz -------------------------------------------------------------------------------- /docs/_framework/_bin/WebAssembly.Bindings.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/WebAssembly.Bindings.dll -------------------------------------------------------------------------------- /docs/_framework/_bin/WebAssembly.Bindings.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/WebAssembly.Bindings.dll.gz -------------------------------------------------------------------------------- /docs/_framework/_bin/mscorlib.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/mscorlib.dll -------------------------------------------------------------------------------- /docs/_framework/_bin/mscorlib.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/_bin/mscorlib.dll.gz -------------------------------------------------------------------------------- /docs/_framework/blazor.boot.json: -------------------------------------------------------------------------------- 1 | { 2 | "cacheBootResources": true, 3 | "config": [ ], 4 | "debugBuild": false, 5 | "entryAssembly": "BlazorApp", 6 | "linkerEnabled": true, 7 | "resources": { 8 | "assembly": { 9 | "BlazorApp.dll": "sha256-TXseK7PN76rEFUgH9FImtyjvcszufDZdmvanAk3yvio=", 10 | "Microsoft.AspNetCore.Components.dll": "sha256-GB+AWjZbBM\/I\/8zhLdBjlfjwmnrczWMoWcNEYl9r0v8=", 11 | "Microsoft.AspNetCore.Components.Web.dll": "sha256-mJUsn1yM1UbQ5f60JOuL00Z2Z3mUKLbP3nBLnWi5Bcg=", 12 | "Microsoft.AspNetCore.Components.WebAssembly.dll": "sha256-3vrpVu03Hc4ZASXvejh+yH6W42lHg5TI4jHGw6uZJ6E=", 13 | "Microsoft.Bcl.AsyncInterfaces.dll": "sha256-jzHgXWAvWMkKIGFjZoT84tbe72E+H7CvTr\/Dryh4QPs=", 14 | "Microsoft.Extensions.Configuration.Abstractions.dll": "sha256-FDkBp7wvu\/ZvT2M6iF32L9T6EDcxFP6bnqra3\/dT6zA=", 15 | "Microsoft.Extensions.Configuration.dll": "sha256-zWfJbT0touS5VX9wV7ynoFIVhjmDpypQ10Axwx0gNco=", 16 | "Microsoft.Extensions.Configuration.Json.dll": "sha256-Zba9bjxaouTv3Re07uODfbULtCKS\/\/6nPx8E1FYTa+g=", 17 | "Microsoft.Extensions.DependencyInjection.Abstractions.dll": "sha256-YBoO70tmqhwaghnLd\/GFKzbZJFZKrsOt\/hVO6NQZyig=", 18 | "Microsoft.Extensions.DependencyInjection.dll": "sha256-g1RDHdaTTpkqxM+1gfkTFKKiOjnT0cY0XLdtLIt9s9A=", 19 | "Microsoft.Extensions.Logging.Abstractions.dll": "sha256-JehcQHgiu+8HsL4UX+L+RRWzaVB6ZnOTofMceAMAxWw=", 20 | "Microsoft.Extensions.Logging.dll": "sha256-T\/tn8fDkKlTqiotzn5954iySE6sMb9WOQUmkKz8DsD8=", 21 | "Microsoft.Extensions.Options.dll": "sha256-gAtFIkH6\/aD\/M5UV9hWMrZcIyplBUTDl54djubL9RrM=", 22 | "Microsoft.Extensions.Primitives.dll": "sha256-rB595VLzEJHL35keRvUURTOmhHmAOaN7nbCptmYoKEI=", 23 | "Microsoft.JSInterop.dll": "sha256-3cbvJEo8k8VJVQwyEZWWQ6yGRFQW8\/219DaOnmsX3e4=", 24 | "Microsoft.JSInterop.WebAssembly.dll": "sha256-zV\/OfJNfNsG404X30Pwkdymdh1KmZpTVEmG\/JNFVc\/k=", 25 | "mscorlib.dll": "sha256-XUn7Fm5nu+g6mt9ux6GsHEAqKe2D17i6cxB3m0iA7rA=", 26 | "System.Core.dll": "sha256-h0p\/AWze90WLWhPbYJ0m0coKZDjW5Q9HcELEeQBM8so=", 27 | "System.dll": "sha256-W1ysbCXtBlMIcrjFzBeLXAMIYwTV+9bgot0zc287wyQ=", 28 | "System.Runtime.CompilerServices.Unsafe.dll": "sha256-arw8Vx7Iso6lcC0ehLc1HjTdCcumMOGSM3GOK\/gtPOs=", 29 | "System.Text.Encodings.Web.dll": "sha256-\/TvTV6jL3uaawbtOhss1QIt9\/c15NJLY+EdtZpiiaNI=", 30 | "System.Text.Json.dll": "sha256-WjLvXlK3Si8eW7AWlgXXalDI\/rk\/ejVU+OUIlRqnep0=", 31 | "WebAssembly.Bindings.dll": "sha256-dbTv0e65QeWi4cdoqXyOL3xdat+QY0hw5ZwO+tVZ114=" 32 | }, 33 | "pdb": null, 34 | "runtime": { 35 | "dotnet.3.2.0.js": "sha256-mPoqx7XczFHBWk3gRNn0hc9ekG1OvkKY4XiKRY5Mj5U=", 36 | "dotnet.timezones.dat": "sha256-3S0qzYaBEKOBXarzVLNzNAFXlwJr6nI3lFlYUpQTPH8=", 37 | "dotnet.wasm": "sha256-UC\/3Rm1NkdNdlIrzYARo+dO\/HDlS5mhPxo0IQv7kma8=" 38 | }, 39 | "satelliteResources": null 40 | } 41 | } -------------------------------------------------------------------------------- /docs/_framework/blazor.boot.json.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/blazor-webassembly-communication-between-components/ceea113dead6d971ba59f1213883f264b21fa0e4/docs/_framework/blazor.boot.json.gz -------------------------------------------------------------------------------- /docs/_framework/blazor.webassembly.js: -------------------------------------------------------------------------------- 1 | !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=46)}([,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(25),n(18);var r=n(26),o=n(13),a={},i=!1;function u(e,t,n){var o=a[e];o||(o=a[e]=new r.BrowserRenderer(e)),o.attachRootComponentToLogicalElement(n,t)}t.attachRootComponentToLogicalElement=u,t.attachRootComponentToElement=function(e,t,n){var r=document.querySelector(e);if(!r)throw new Error("Could not find any element matching selector '"+e+"'.");u(n||0,o.toLogicalElement(r,!0),t)},t.renderBatch=function(e,t){var n=a[e];if(!n)throw new Error("There is no browser renderer with ID "+e+".");for(var r=t.arrayRangeReader,o=t.updatedComponents(),u=r.values(o),s=r.count(o),c=t.referenceFrames(),l=r.values(c),f=t.diffReader,d=0;d0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]0&&!t)throw new Error("New logical elements must start empty, or allowExistingContents must be true");return e[r]=[],e}function u(e,t,n){var a=e;if(e instanceof Comment&&(c(a)&&c(a).length>0))throw new Error("Not implemented: inserting non-empty logical container");if(s(a))throw new Error("Not implemented: moving existing logical children");var i=c(t);if(n0;)e(r,0);var a=r;a.parentNode.removeChild(a)},t.getLogicalParent=s,t.getLogicalSiblingEnd=function(e){return e[a]||null},t.getLogicalChild=function(e,t){return c(e)[t]},t.isSvgElement=function(e){return"http://www.w3.org/2000/svg"===l(e).namespaceURI},t.getLogicalChildrenArray=c,t.permuteLogicalChildren=function(e,t){var n=c(e);t.forEach((function(e){e.moveRangeStart=n[e.fromSiblingIndex],e.moveRangeEnd=function e(t){if(t instanceof Element)return t;var n=f(t);if(n)return n.previousSibling;var r=s(t);return r instanceof Element?r.lastChild:e(r)}(e.moveRangeStart)})),t.forEach((function(t){var r=t.moveToBeforeMarker=document.createComment("marker"),o=n[t.toSiblingIndex+1];o?o.parentNode.insertBefore(r,o):d(r,e)})),t.forEach((function(e){for(var t=e.moveToBeforeMarker,n=t.parentNode,r=e.moveRangeStart,o=e.moveRangeEnd,a=r;a;){var i=a.nextSibling;if(n.insertBefore(a,t),a===o)break;a=i}n.removeChild(t)})),t.forEach((function(e){n[e.toSiblingIndex]=e.moveRangeStart}))},t.getClosestDomElement=l},,,,function(e,t,n){"use strict";var r;!function(e){window.DotNet=e;var t=[],n={},r={},o=1,a=null;function i(e){t.push(e)}function u(e,t,n,r){var o=c();if(o.invokeDotNetFromJS){var a=JSON.stringify(r,m),i=o.invokeDotNetFromJS(e,t,n,a);return i?f(i):null}throw new Error("The current dispatcher does not support synchronous calls from JS to .NET. Use invokeMethodAsync instead.")}function s(e,t,r,a){if(e&&r)throw new Error("For instance method calls, assemblyName should be null. Received '"+e+"'.");var i=o++,u=new Promise((function(e,t){n[i]={resolve:e,reject:t}}));try{var s=JSON.stringify(a,m);c().beginInvokeDotNetFromJS(i,e,t,r,s)}catch(e){l(i,!1,e)}return u}function c(){if(null!==a)return a;throw new Error("No .NET call dispatcher has been set.")}function l(e,t,r){if(!n.hasOwnProperty(e))throw new Error("There is no pending async call with ID "+e+".");var o=n[e];delete n[e],t?o.resolve(r):o.reject(r)}function f(e){return e?JSON.parse(e,(function(e,n){return t.reduce((function(t,n){return n(e,t)}),n)})):null}function d(e){return e instanceof Error?e.message+"\n"+e.stack:e?e.toString():"null"}function p(e){if(r.hasOwnProperty(e))return r[e];var t,n=window,o="window";if(e.split(".").forEach((function(e){if(!(e in n))throw new Error("Could not find '"+e+"' in '"+o+"'.");t=n,n=n[e],o+="."+e})),n instanceof Function)return n=n.bind(t),r[e]=n,n;throw new Error("The value '"+o+"' is not a function.")}e.attachDispatcher=function(e){a=e},e.attachReviver=i,e.invokeMethod=function(e,t){for(var n=[],r=2;r0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]>>0)}t.readInt32LE=function(e,t){return e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24},t.readUint32LE=a,t.readUint64LE=function(e,t){var n=a(e,t+4);if(n>o)throw new Error("Cannot read uint64 with high order part "+n+", because the result would exceed Number.MAX_SAFE_INTEGER.");return n*r+a(e,t)},t.readLEB128=function(e,t){for(var n=0,r=0,o=0;o<4;o++){var a=e[t+o];if(n|=(127&a)<65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c)}r.length>1024&&(o.push(String.fromCharCode.apply(null,r)),r.length=0)}return o.push(String.fromCharCode.apply(null,r)),o.join("")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shouldAutoStart=function(){return!(!document||!document.currentScript||"false"===document.currentScript.getAttribute("autostart"))}},,,,,,,,,,,function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{s(r.next(e))}catch(e){a(e)}}function u(e){try{s(r.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(a){return function(u){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i};Object.defineProperty(t,"__esModule",{value:!0}),n(17),n(24);var i=n(18),u=n(47),s=n(5),c=n(50),l=n(35),f=n(19),d=n(51),p=n(52),h=n(53),m=!1;function v(e){return r(this,void 0,void 0,(function(){var t,n,l,v,y,b,g,w=this;return o(this,(function(E){switch(E.label){case 0:if(m)throw new Error("Blazor has already started.");return m=!0,f.setEventDispatcher((function(e,t){return DotNet.invokeMethodAsync("Microsoft.AspNetCore.Components.WebAssembly","DispatchEvent",e,JSON.stringify(t))})),t=i.setPlatform(u.monoPlatform),window.Blazor.platform=t,window.Blazor._internal.renderBatch=function(e,t){s.renderBatch(e,new c.SharedMemoryRenderBatch(t))},n=window.Blazor._internal.navigationManager.getBaseURI,l=window.Blazor._internal.navigationManager.getLocationHref,window.Blazor._internal.navigationManager.getUnmarshalledBaseURI=function(){return BINDING.js_string_to_mono_string(n())},window.Blazor._internal.navigationManager.getUnmarshalledLocationHref=function(){return BINDING.js_string_to_mono_string(l())},window.Blazor._internal.navigationManager.listenForNavigationEvents((function(e,t){return r(w,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,DotNet.invokeMethodAsync("Microsoft.AspNetCore.Components.WebAssembly","NotifyLocationChanged",e,t)];case 1:return n.sent(),[2]}}))}))})),[4,h.BootConfigResult.initAsync()];case 1:return v=E.sent(),[4,Promise.all([d.WebAssemblyResourceLoader.initAsync(v.bootConfig,e||{}),p.WebAssemblyConfigLoader.initAsync(v)])];case 2:y=a.apply(void 0,[E.sent(),1]),b=y[0],E.label=3;case 3:return E.trys.push([3,5,,6]),[4,t.start(b)];case 4:return E.sent(),[3,6];case 5:throw g=E.sent(),new Error("Failed to start platform. Reason: "+g);case 6:return t.callEntryPoint(b.bootConfig.entryAssembly),[2]}}))}))}window.Blazor.start=v,l.shouldAutoStart()&&v().catch((function(e){"undefined"!=typeof Module&&Module.printErr?Module.printErr(e):console.error(e)}))},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{s(r.next(e))}catch(e){a(e)}}function u(e){try{s(r.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(a){return function(u){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]>2]}t.monoPlatform={start:function(e){return new Promise((function(t,n){var c,l;i.attachDebuggerHotkey(e),window.Browser={init:function(){}},c=function(){window.Module=function(e,t,n){var c=this,l=e.bootConfig.resources,f=window.Module||{},p=["DEBUGGING ENABLED"];f.print=function(e){return p.indexOf(e)<0&&console.log(e)},f.printErr=function(e){console.error(e),u.showErrorNotification()},f.preRun=f.preRun||[],f.postRun=f.postRun||[],f.preloadPlugins=[];var v,y=e.loadResources(l.assembly,(function(e){return"_framework/_bin/"+e}),"assembly"),b=e.loadResources(l.pdb||{},(function(e){return"_framework/_bin/"+e}),"pdb"),g=e.loadResource("dotnet.wasm","_framework/wasm/dotnet.wasm",e.bootConfig.resources.runtime["dotnet.wasm"],"dotnetwasm");return e.bootConfig.resources.runtime.hasOwnProperty("dotnet.timezones.dat")&&(v=e.loadResource("dotnet.timezones.dat","_framework/wasm/dotnet.timezones.dat",e.bootConfig.resources.runtime["dotnet.timezones.dat"],"timezonedata")),f.instantiateWasm=function(e,t){return r(c,void 0,void 0,(function(){var n,r;return o(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),[4,g];case 1:return[4,m(o.sent(),e)];case 2:return n=o.sent(),[3,4];case 3:throw r=o.sent(),f.printErr(r),r;case 4:return t(n),[2]}}))})),[]},f.preRun.push((function(){a=cwrap("mono_wasm_add_assembly",null,["string","number","number"]),cwrap("mono_wasm_string_get_utf8","number",["number"]),MONO.loaded_files=[],v&&function(e){r(this,void 0,void 0,(function(){var t,n;return o(this,(function(r){switch(r.label){case 0:return t="blazor:timezonedata",addRunDependency(t),[4,e.response];case 1:return[4,r.sent().arrayBuffer()];case 2:return n=r.sent(),s.loadTimezoneData(n),removeRunDependency(t),[2]}}))}))}(v),y.forEach((function(e){return w(e,function(e,t){var n=e.lastIndexOf(".");if(n<0)throw new Error("No extension to replace in '"+e+"'");return e.substr(0,n)+t}(e.name,".dll"))})),b.forEach((function(e){return w(e,e.name)})),window.Blazor._internal.dotNetCriticalError=function(e){f.printErr(BINDING.conv_string(e)||"(null)")},window.Blazor._internal.getSatelliteAssemblies=function(t){var n=BINDING.mono_array_to_js_array(t),a=e.bootConfig.resources.satelliteResources;if(a){var i=Promise.all(n.filter((function(e){return a.hasOwnProperty(e)})).map((function(t){return e.loadResources(a[t],(function(e){return"_framework/_bin/"+e}),"assembly")})).reduce((function(e,t){return e.concat(t)}),new Array).map((function(e){return r(c,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,e.response];case 1:return[2,t.sent().arrayBuffer()]}}))}))})));return BINDING.js_to_mono_obj(i.then((function(e){return e.length&&(window.Blazor._internal.readSatelliteAssemblies=function(){for(var t=BINDING.mono_obj_array_new(e.length),n=0;n>1];var n},readInt32Field:function(e,t){return f(e+(t||0))},readUint64Field:function(e,t){return function(e){var t=e>>2,n=Module.HEAPU32[t+1];if(n>l)throw new Error("Cannot read uint64 with high order part "+n+", because the result would exceed Number.MAX_SAFE_INTEGER.");return n*c+Module.HEAPU32[t]}(e+(t||0))},readFloatField:function(e,t){return n=e+(t||0),Module.HEAPF32[n>>2];var n},readObjectField:function(e,t){return f(e+(t||0))},readStringField:function(e,t,n){var r=f(e+(t||0));if(0===r)return null;if(n){var o=BINDING.unbox_mono_obj(r);return"boolean"==typeof o?o?"":null:o}return BINDING.conv_string(r)},readStructField:function(e,t){return e+(t||0)}};var d=document.createElement("a");function p(e){return e+12}function h(e,t,n){var r="["+e+"] "+t+":"+n;return BINDING.bind_static_method(r)}function m(e,t){return r(this,void 0,void 0,(function(){var n,r;return o(this,(function(o){switch(o.label){case 0:if("function"!=typeof WebAssembly.instantiateStreaming)return[3,4];o.label=1;case 1:return o.trys.push([1,3,,4]),[4,WebAssembly.instantiateStreaming(e.response,t)];case 2:return[2,o.sent().instance];case 3:return n=o.sent(),console.info("Streaming compilation failed. Falling back to ArrayBuffer instantiation. ",n),[3,4];case 4:return[4,e.response.then((function(e){return e.arrayBuffer()}))];case 5:return r=o.sent(),[4,WebAssembly.instantiate(r,t)];case 6:return[2,o.sent().instance]}}))}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=window.chrome&&navigator.userAgent.indexOf("Edge")<0,o=!1;function a(){return o&&r}t.hasDebuggingEnabled=a,t.attachDebuggerHotkey=function(e){o=!!e.bootConfig.resources.pdb;var t=navigator.platform.match(/^Mac/i)?"Cmd":"Alt";a()&&console.info("Debugging hotkey: Shift+"+t+"+D (when application has focus)"),document.addEventListener("keydown",(function(e){var t;e.shiftKey&&(e.metaKey||e.altKey)&&"KeyD"===e.code&&(o?r?((t=document.createElement("a")).href="_framework/debug?url="+encodeURIComponent(location.href),t.target="_blank",t.rel="noopener noreferrer",t.click()):console.error("Currently, only Microsoft Edge (80+), or Google Chrome, are supported for debugging."):console.error("Cannot start debugging, because the application was not compiled with debugging enabled."))}))}},function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i};Object.defineProperty(t,"__esModule",{value:!0});var a=n(33),i=n(34);t.loadTimezoneData=function(e){var t,n,u=new Uint8Array(e),s=a.readInt32LE(u,0);u=u.slice(4);var c=i.decodeUtf8(u.slice(0,s)),l=JSON.parse(c);u=u.slice(s),Module.FS_createPath("/","zoneinfo",!0,!0),new Set(l.map((function(e){return e[0].split("/")[0]}))).forEach((function(e){return Module.FS_createPath("/zoneinfo",e,!0,!0)}));try{for(var f=r(l),d=f.next();!d.done;d=f.next()){var p=o(d.value,2),h=p[0],m=p[1],v=u.slice(0,m);Module.FS_createDataFile("/zoneinfo/"+h,null,v,!0,!0,!0),u=u.slice(m)}}catch(e){t={error:e}}finally{try{d&&!d.done&&(n=f.return)&&n.call(f)}finally{if(t)throw t.error}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(18),o=function(){function e(e){this.batchAddress=e,this.arrayRangeReader=a,this.arrayBuilderSegmentReader=i,this.diffReader=u,this.editReader=s,this.frameReader=c}return e.prototype.updatedComponents=function(){return r.platform.readStructField(this.batchAddress,0)},e.prototype.referenceFrames=function(){return r.platform.readStructField(this.batchAddress,a.structLength)},e.prototype.disposedComponentIds=function(){return r.platform.readStructField(this.batchAddress,2*a.structLength)},e.prototype.disposedEventHandlerIds=function(){return r.platform.readStructField(this.batchAddress,3*a.structLength)},e.prototype.updatedComponentsEntry=function(e,t){return l(e,t,u.structLength)},e.prototype.referenceFramesEntry=function(e,t){return l(e,t,c.structLength)},e.prototype.disposedComponentIdsEntry=function(e,t){var n=l(e,t,4);return r.platform.readInt32Field(n)},e.prototype.disposedEventHandlerIdsEntry=function(e,t){var n=l(e,t,8);return r.platform.readUint64Field(n)},e}();t.SharedMemoryRenderBatch=o;var a={structLength:8,values:function(e){return r.platform.readObjectField(e,0)},count:function(e){return r.platform.readInt32Field(e,4)}},i={structLength:12,values:function(e){var t=r.platform.readObjectField(e,0),n=r.platform.getObjectFieldsBaseAddress(t);return r.platform.readObjectField(n,0)},offset:function(e){return r.platform.readInt32Field(e,4)},count:function(e){return r.platform.readInt32Field(e,8)}},u={structLength:4+i.structLength,componentId:function(e){return r.platform.readInt32Field(e,0)},edits:function(e){return r.platform.readStructField(e,4)},editsEntry:function(e,t){return l(e,t,s.structLength)}},s={structLength:20,editType:function(e){return r.platform.readInt32Field(e,0)},siblingIndex:function(e){return r.platform.readInt32Field(e,4)},newTreeIndex:function(e){return r.platform.readInt32Field(e,8)},moveToSiblingIndex:function(e){return r.platform.readInt32Field(e,8)},removedAttributeName:function(e){return r.platform.readStringField(e,16)}},c={structLength:36,frameType:function(e){return r.platform.readInt16Field(e,4)},subtreeLength:function(e){return r.platform.readInt32Field(e,8)},elementReferenceCaptureId:function(e){return r.platform.readStringField(e,16)},componentId:function(e){return r.platform.readInt32Field(e,12)},elementName:function(e){return r.platform.readStringField(e,16)},textContent:function(e){return r.platform.readStringField(e,16)},markupContent:function(e){return r.platform.readStringField(e,16)},attributeName:function(e){return r.platform.readStringField(e,16)},attributeValue:function(e){return r.platform.readStringField(e,24,!0)},attributeEventHandlerId:function(e){return r.platform.readUint64Field(e,8)}};function l(e,t,n){return r.platform.getArrayEntryPtr(e,t,n)}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{s(r.next(e))}catch(e){a(e)}}function u(e){try{s(r.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(a){return function(u){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1] 2 | 3 | 4 | 5 | 6 | ASP.NET Core Blazor WebAssembly - Communication Between Components 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | Loading... 18 | 19 | 20 | 28 | 29 |
30 | An unhandled error has occurred. 31 | Reload 32 | X 33 |
34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /wwwroot/css/app.css: -------------------------------------------------------------------------------- 1 | #blazor-error-ui { 2 | background: lightyellow; 3 | bottom: 0; 4 | box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2); 5 | display: none; 6 | left: 0; 7 | padding: 0.6rem 1.25rem 0.7rem 1.25rem; 8 | position: fixed; 9 | width: 100%; 10 | z-index: 1000; 11 | } 12 | 13 | #blazor-error-ui .dismiss { 14 | cursor: pointer; 15 | position: absolute; 16 | right: 0.75rem; 17 | top: 0.5rem; 18 | } -------------------------------------------------------------------------------- /wwwroot/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | ASP.NET Core Blazor WebAssembly - Communication Between Components 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | Loading... 18 | 19 | 20 | 28 | 29 |
30 | An unhandled error has occurred. 31 | Reload 32 | X 33 |
34 | 35 | 36 | 37 | --------------------------------------------------------------------------------