1 write to Renderer
Microsoft.AspNetCore.Components.Server (1)
Circuits\CircuitHost.cs (1)
69Renderer = renderer ?? throw new ArgumentNullException(nameof(renderer));
37 references to Renderer
Microsoft.AspNetCore.Components.Server (26)
Circuits\CircuitHost.cs (22)
86Renderer.UnhandledException += ReportAndInvoke_UnhandledException; 87Renderer.UnhandledSynchronizationException += SynchronizationContext_UnhandledException; 118return HandleInboundActivityAsync(() => Renderer.Dispatcher.InvokeAsync(async () => 151pendingRenders[i] = Renderer.AddComponentAsync(componentType, parameters, sequence.ToString(CultureInfo.InvariantCulture)); 199await Renderer.Dispatcher.InvokeAsync(async () => 236await Renderer.DisposeAsync(); 255Renderer.Dispatcher.AssertAccess(); 285Renderer.Dispatcher.AssertAccess(); 315Renderer.Dispatcher.AssertAccess(); 378_ = HandleInboundActivityAsync(() => Renderer.OnRenderCompletedAsync(renderId, errorMessageOrNull)); 399await HandleInboundActivityAsync(() => Renderer.Dispatcher.InvokeAsync(() => 425await HandleInboundActivityAsync(() => Renderer.Dispatcher.InvokeAsync(() => 459await HandleInboundActivityAsync(() => Renderer.Dispatcher.InvokeAsync(() => 484return await HandleInboundActivityAsync(() => Renderer.Dispatcher.InvokeAsync(() => 507return await Renderer.Dispatcher.InvokeAsync(async () => await dotNetStreamReference.Stream.ReadAsync(buffer)); 529return await Renderer.Dispatcher.InvokeAsync<DotNetStreamReference>(() => 559await HandleInboundActivityAsync(() => Renderer.Dispatcher.InvokeAsync(() => 601var shouldContinueNavigation = await HandleInboundActivityAsync(() => Renderer.Dispatcher.InvokeAsync(async () => 640_ = Renderer.Dispatcher.InvokeAsync(Renderer.ProcessBufferedRenderBatches); 760return Renderer.Dispatcher.InvokeAsync(async () => 835var webRootComponentManager = Renderer.GetOrCreateWebRootComponentManager();
Circuits\CircuitPersistenceManager.cs (2)
24var renderer = circuit.Renderer; 26var collector = new CircuitPersistenceManagerCollector(circuitOptions, serverComponentSerializer, circuit.Renderer);
Circuits\CircuitRegistry.cs (2)
99circuitHandlerTask = circuitHost.Renderer.Dispatcher.InvokeAsync(() => circuitHost.OnConnectionDownAsync(default)); 202circuitHandlerTask = circuitHost.Renderer.Dispatcher.InvokeAsync(async () =>
Microsoft.AspNetCore.Components.Server.Tests (11)
Circuits\CircuitHostTest.cs (11)
86circuitHost.Renderer.AssignRootComponentId(throwOnDisposeComponent); 107var component = new DispatcherComponent(circuitHost.Renderer.Dispatcher); 108circuitHost.Renderer.AssignRootComponentId(component); 138circuitHost.Renderer.AssignRootComponentId(component); 540var componentState = ((TestRemoteRenderer)circuitHost.Renderer).GetTestComponentState(0); 566var componentState = ((TestRemoteRenderer)circuitHost.Renderer).GetTestComponentState(0); 592((TestRemoteRenderer)circuitHost.Renderer).GetTestComponentState(0)); 593var componentState = ((TestRemoteRenderer)circuitHost.Renderer).GetTestComponentState(1); 627var componentState = ((TestRemoteRenderer)circuitHost.Renderer).GetTestComponentState(0); 664var componentState = ((TestRemoteRenderer)circuitHost.Renderer).GetTestComponentState(0); 693((TestRemoteRenderer)circuitHost.Renderer).GetTestComponentState(0));