8 types derived from Dispatcher
Microsoft.AspNetCore.Components (1)
Rendering\RendererSynchronizationContextDispatcher.cs (1)
6internal sealed class RendererSynchronizationContextDispatcher : Dispatcher
Microsoft.AspNetCore.Components.WebAssembly (2)
Rendering\NullDispatcher.cs (1)
6internal sealed class NullDispatcher : Dispatcher
Rendering\WebAssemblyDispatcher.cs (1)
10internal sealed class WebAssemblyDispatcher : Dispatcher
Microsoft.AspNetCore.Components.WebView.Maui (1)
MauiDispatcher.cs (1)
7 internal sealed class MauiDispatcher : Dispatcher
Microsoft.AspNetCore.Components.WebView.Photino (1)
PhotinoDispatcher.cs (1)
8internal class PhotinoDispatcher : Dispatcher
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
WindowsFormsDispatcher.cs (1)
16 internal sealed class WindowsFormsDispatcher : Dispatcher
Microsoft.AspNetCore.Components.WebView.Wpf (1)
WpfDispatcher.cs (1)
11 internal sealed class WpfDispatcher : Dispatcher
Wasm.Performance.ConsoleHost (1)
NullDispatcher.cs (1)
10internal sealed class NullDispatcher : Dispatcher
81 references to Dispatcher
Microsoft.AspNetCore.Components (10)
CascadingValueSource.cs (3)
19private readonly ConcurrentDictionary<Dispatcher, List<ComponentState>>? _subscribers; 165Dispatcher dispatcher = subscriber.Renderer.Dispatcher; 174Dispatcher dispatcher = subscriber.Renderer.Dispatcher;
Dispatcher.cs (3)
18/// Creates a default instance of <see cref="Dispatcher"/>. 20/// <returns>A <see cref="Dispatcher"/> instance.</returns> 21public static Dispatcher CreateDefault() => new RendererSynchronizationContextDispatcher();
RenderHandle.cs (2)
25/// Gets the <see cref="Components.Dispatcher" /> associated with the component. 27public Dispatcher Dispatcher
RenderTree\Renderer.cs (2)
109/// Gets the <see cref="Components.Dispatcher" /> associated with this <see cref="Renderer" />. 111public abstract Dispatcher Dispatcher { get; }
Microsoft.AspNetCore.Components.Analyzers.Tests (2)
TestFiles\ComponentInternalUsageDiagnosticsAnalyzerTest\UsesRendererAsBaseClass.cs (1)
16public override Dispatcher Dispatcher => throw new NotImplementedException();
TestFiles\ComponentInternalUsageDiagnosticsAnalyzerTest\UsesRendererTypesInDeclarations.cs (1)
19public override Dispatcher Dispatcher => throw new NotImplementedException();
Microsoft.AspNetCore.Components.Authorization.Tests (4)
src\Components\Shared\test\TestRenderer.cs (4)
17public TestRenderer(Dispatcher dispatcher) : base(new TestServiceProvider(), NullLoggerFactory.Instance) 24Dispatcher = Dispatcher.CreateDefault(); 30Dispatcher = Dispatcher.CreateDefault(); 33public override Dispatcher Dispatcher { get; }
Microsoft.AspNetCore.Components.Endpoints (3)
DependencyInjection\IComponentPrerenderer.cs (1)
43Dispatcher Dispatcher { get; }
Rendering\EndpointHtmlRenderer.Prerendering.cs (2)
253private readonly Dispatcher? _dispatcher; 260Dispatcher? dispatcher, // If null, we're only emitting the markers
Microsoft.AspNetCore.Components.Endpoints.Tests (3)
ImportMapTest.cs (3)
252Dispatcher = Dispatcher.CreateDefault(); 258Dispatcher = Dispatcher.CreateDefault(); 261public override Dispatcher Dispatcher { get; }
Microsoft.AspNetCore.Components.Forms.Tests (4)
src\Components\Shared\test\TestRenderer.cs (4)
17public TestRenderer(Dispatcher dispatcher) : base(new TestServiceProvider(), NullLoggerFactory.Instance) 24Dispatcher = Dispatcher.CreateDefault(); 30Dispatcher = Dispatcher.CreateDefault(); 33public override Dispatcher Dispatcher { get; }
Microsoft.AspNetCore.Components.Performance (2)
RenderTreeDiffBuilderBenchmark.cs (2)
93public override Dispatcher Dispatcher { get; } = Dispatcher.CreateDefault();
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (2)
TestFiles\ComponentInternalUsageDiagnosticsAnalyzerTest\UsesRendererAsBaseClass.cs (1)
16public override Dispatcher Dispatcher => throw new NotImplementedException();
TestFiles\ComponentInternalUsageDiagnosticsAnalyzerTest\UsesRendererTypesInDeclarations.cs (1)
19public override Dispatcher Dispatcher => throw new NotImplementedException();
Microsoft.AspNetCore.Components.Server (2)
Circuits\RemoteRenderer.cs (2)
61public override Dispatcher Dispatcher { get; } = Dispatcher.CreateDefault();
Microsoft.AspNetCore.Components.Server.Tests (4)
Circuits\CircuitHostTest.cs (2)
734public DispatcherComponent(Dispatcher dispatcher) 739public Dispatcher Dispatcher { get; }
Circuits\RenderBatchWriterTest.cs (2)
392public override Dispatcher Dispatcher { get; } = Dispatcher.CreateDefault();
Microsoft.AspNetCore.Components.Tests (14)
ComponentFactoryTest.cs (1)
424public override Dispatcher Dispatcher => throw new NotImplementedException();
Lifetime\ComponentStatePersistenceManagerTest.cs (3)
243private readonly Dispatcher _dispatcher = Dispatcher.CreateDefault(); 245public override Dispatcher Dispatcher => _dispatcher;
RendererTest.cs (2)
5171public override Dispatcher Dispatcher { get; } = Dispatcher.CreateDefault();
Rendering\RenderTreeBuilderTest.cs (2)
2297public override Dispatcher Dispatcher { get; } = Dispatcher.CreateDefault();
RenderTreeDiffBuilderTest.cs (2)
2461public override Dispatcher Dispatcher { get; } = Dispatcher.CreateDefault();
src\Components\Shared\test\TestRenderer.cs (4)
17public TestRenderer(Dispatcher dispatcher) : base(new TestServiceProvider(), NullLoggerFactory.Instance) 24Dispatcher = Dispatcher.CreateDefault(); 30Dispatcher = Dispatcher.CreateDefault(); 33public override Dispatcher Dispatcher { get; }
Microsoft.AspNetCore.Components.Web (5)
HtmlRendering\HtmlRenderer.cs (3)
37/// Gets the <see cref="Components.Dispatcher" /> associated with this instance. Any calls to 39/// must be performed using this <see cref="Components.Dispatcher" />. 41public Dispatcher Dispatcher => _passiveHtmlRenderer.Dispatcher;
HtmlRendering\StaticHtmlRenderer.cs (2)
41public override Dispatcher Dispatcher { get; } = Dispatcher.CreateDefault();
Microsoft.AspNetCore.Components.Web.Tests (4)
src\Components\Shared\test\TestRenderer.cs (4)
17public TestRenderer(Dispatcher dispatcher) : base(new TestServiceProvider(), NullLoggerFactory.Instance) 24Dispatcher = Dispatcher.CreateDefault(); 30Dispatcher = Dispatcher.CreateDefault(); 33public override Dispatcher Dispatcher { get; }
Microsoft.AspNetCore.Components.WebAssembly (3)
Rendering\NullDispatcher.cs (1)
8public static readonly Dispatcher Instance = new NullDispatcher();
Rendering\WebAssemblyRenderer.cs (2)
25private readonly Dispatcher _dispatcher; 90public override Dispatcher Dispatcher => _dispatcher;
Microsoft.AspNetCore.Components.WebView (9)
IpcSender.cs (2)
15private readonly Dispatcher _dispatcher; 18public IpcSender(Dispatcher dispatcher, Action<string> messageDispatcher)
PageContext.cs (1)
32Dispatcher dispatcher,
Services\WebViewRenderer.cs (3)
14private readonly Dispatcher _dispatcher; 20Dispatcher dispatcher, 33public override Dispatcher Dispatcher => _dispatcher;
WebViewManager.cs (3)
23private readonly Dispatcher _dispatcher; 44public WebViewManager(IServiceProvider provider, Dispatcher dispatcher, Uri appBaseUri, IFileProvider fileProvider, JSComponentConfigurationStore jsComponents, string hostPageRelativePath) 59public Dispatcher Dispatcher => _dispatcher;
Microsoft.AspNetCore.Components.WebView.Maui (2)
iOS\IOSWebViewManager.cs (2)
33 /// <param name="dispatcher">A <see cref="Dispatcher"/> instance instance that can marshal calls to the required thread or sync context.</param> 40 public IOSWebViewManager(BlazorWebViewHandler blazorMauiWebViewHandler, WKWebView webview, IServiceProvider provider, Dispatcher dispatcher, IFileProvider fileProvider, JSComponentConfigurationStore jsComponents, string contentRootRelativeToAppRoot, string hostPageRelativePath, ILogger logger)
Microsoft.AspNetCore.Components.WebView.Photino (1)
PhotinoWebViewManager.cs (1)
27public PhotinoWebViewManager(PhotinoWindow window, IServiceProvider provider, Dispatcher dispatcher, Uri appBaseUri, IFileProvider fileProvider, JSComponentConfigurationStore jsComponents, string hostPageRelativePath)
Microsoft.AspNetCore.Components.WebView.Test (1)
Infrastructure\TestWebViewManager.cs (1)
14: base(provider, Dispatcher.CreateDefault(), AppBaseUri, fileProvider, new(), hostPageRelativePath: "index.html")
Microsoft.AspNetCore.Components.WebView.WindowsForms (3)
src\BlazorWebView\src\SharedSource\WebView2WebViewManager.cs (2)
77 /// <param name="dispatcher">A <see cref="Dispatcher"/> instance that can marshal calls to the required thread or sync context.</param> 89 Dispatcher dispatcher,
WindowsFormsDispatcher.cs (1)
12 /// Dispatcher implementation for Windows Forms that invokes methods on the UI thread. The <see cref="Dispatcher"/>
Microsoft.AspNetCore.Components.WebView.Wpf (2)
src\BlazorWebView\src\SharedSource\WebView2WebViewManager.cs (2)
77 /// <param name="dispatcher">A <see cref="Dispatcher"/> instance that can marshal calls to the required thread or sync context.</param> 89 Dispatcher dispatcher,
Wasm.Performance.ConsoleHost (1)
ConsoleHostRenderer.cs (1)
20public override Dispatcher Dispatcher { get; } = new NullDispatcher();