80 references to RenderMode
BasicTestApp (1)
PreserveStateService.cs (1)
19_persistingSubscription = _componentApplicationState.RegisterOnPersisting(PersistState, RenderMode.InteractiveAuto);
Microsoft.AspNetCore.Components.Endpoints (7)
DependencyInjection\RazorComponentsServiceCollectionExtensions.cs (2)
78RegisterPersistentComponentStateServiceCollectionExtensions.AddPersistentServiceRegistration<ResourceCollectionProvider>(services, RenderMode.InteractiveWebAssembly); 87RegisterPersistentComponentStateServiceCollectionExtensions.AddPersistentServiceRegistration<AntiforgeryStateProvider>(services, RenderMode.InteractiveAuto);
Discovery\RazorComponentApplication.cs (4)
46set.Add(RenderMode.InteractiveServer); 49set.Add(RenderMode.InteractiveWebAssembly); 52set.Add(RenderMode.InteractiveServer); 53set.Add(RenderMode.InteractiveWebAssembly);
Rendering\EndpointHtmlRenderer.cs (1)
125componentApplicationLifetime.SetPlatformRenderMode(RenderMode.InteractiveAuto);
Microsoft.AspNetCore.Components.Endpoints.Tests (50)
EndpointHtmlRendererTest.cs (36)
174var result = await renderer.PrerenderComponentAsync(httpContext, typeof(SimpleComponent), RenderMode.InteractiveWebAssembly, ParameterView.Empty); 288RenderMode.InteractiveWebAssembly, 338RenderMode.InteractiveWebAssembly, 435var result = await renderer.PrerenderComponentAsync(httpContext, typeof(SimpleComponent), RenderMode.InteractiveServer, ParameterView.Empty); 479var server = await renderer.PrerenderComponentAsync(httpContext, typeof(GreetingComponent), RenderMode.InteractiveServer, parameters); 480var client = await renderer.PrerenderComponentAsync(httpContext, typeof(GreetingComponent), RenderMode.InteractiveWebAssembly, parameters); 632var result = await renderer.PrerenderComponentAsync(httpContext, typeof(GreetingComponent), RenderMode.InteractiveServer, parameters); 683var result = await renderer.PrerenderComponentAsync(httpContext, typeof(GreetingComponent), RenderMode.InteractiveServer, parameters); 1326RenderMode.InteractiveServer, 1327RenderMode.InteractiveWebAssembly 1364var declaredRenderModesMetadata = new ConfiguredRenderModesMetadata([RenderMode.InteractiveServer, RenderMode.InteractiveWebAssembly]); 1386"server" => RenderMode.InteractiveServer, 1387"wasm" => RenderMode.InteractiveWebAssembly, 1388"auto" => RenderMode.InteractiveAuto, 1392var declaredRenderModesMetadata = new ConfiguredRenderModesMetadata([RenderMode.InteractiveServer, RenderMode.InteractiveWebAssembly]); 1440"server" => RenderMode.InteractiveServer, 1441"wasm" => RenderMode.InteractiveWebAssembly, 1442"auto" => RenderMode.InteractiveAuto, 1484var declaredRenderModesMetadata = new ConfiguredRenderModesMetadata([RenderMode.InteractiveServer, RenderMode.InteractiveWebAssembly]); 1509"server" => RenderMode.InteractiveServer, 1510"wasm" => RenderMode.InteractiveWebAssembly, 1511"auto" => RenderMode.InteractiveAuto, 1514var declaredRenderModesMetadata = new ConfiguredRenderModesMetadata([RenderMode.InteractiveServer, RenderMode.InteractiveWebAssembly]); 1565"server" => RenderMode.InteractiveServer, 1566"wasm" => RenderMode.InteractiveWebAssembly, 1567"auto" => RenderMode.InteractiveAuto, 1573"server" => RenderMode.InteractiveServer, 1574"wasm" => RenderMode.InteractiveWebAssembly, 1575"auto" => RenderMode.InteractiveAuto, 1749State.RegisterOnPersisting(PersistState, RenderMode.InteractiveServer); 1752State.RegisterOnPersisting(PersistState, RenderMode.InteractiveWebAssembly); 1755State.RegisterOnPersisting(PersistState, RenderMode.InteractiveAuto);
RazorComponentEndpointDataSourceTest.cs (14)
59new [] { RenderMode.InteractiveServer }, 66new [] { RenderMode.InteractiveWebAssembly }, 73new IComponentRenderMode [] { RenderMode.InteractiveServer, RenderMode.InteractiveWebAssembly }, 88new [] { RenderMode.InteractiveServer }, 95new [] { RenderMode.InteractiveWebAssembly }, 102new IComponentRenderMode [] { RenderMode.InteractiveServer, RenderMode.InteractiveWebAssembly }, 116new [] { RenderMode.InteractiveServer }, 124new [] { RenderMode.InteractiveWebAssembly }, 131new IComponentRenderMode [] { RenderMode.InteractiveServer, RenderMode.InteractiveWebAssembly }, 175new IComponentRenderMode[] { RenderMode.InteractiveServer }, 196new IComponentRenderMode[] { RenderMode.InteractiveWebAssembly },
Microsoft.AspNetCore.Components.Server (4)
Builder\ServerRazorComponentsEndpointConventionBuilderExtensions.cs (1)
19/// Configures the application to support the <see cref="RenderMode.InteractiveServer"/> render mode.
Circuits\CircuitFactory.cs (1)
77appLifetime.SetPlatformRenderMode(RenderMode.InteractiveServer);
Circuits\CircuitHost.cs (1)
781appLifetime.SetPlatformRenderMode(RenderMode.InteractiveServer);
Circuits\RemoteRenderer.cs (1)
67protected internal override IComponentRenderMode? GetComponentRenderMode(IComponent component) => RenderMode.InteractiveServer;
Microsoft.AspNetCore.Components.Server.Tests (1)
Circuits\RenderBatchWriterTest.cs (1)
218RenderTreeFrame.ComponentRenderModeFrame(136, RenderMode.InteractiveAuto),
Microsoft.AspNetCore.Components.WebAssembly (4)
Hosting\WebAssemblyHost.cs (1)
139manager.SetPlatformRenderMode(RenderMode.InteractiveWebAssembly);
Hosting\WebAssemblyHostBuilder.cs (2)
311RegisterPersistentComponentStateServiceCollectionExtensions.AddPersistentServiceRegistration<ResourceCollectionProvider>(Services, RenderMode.InteractiveWebAssembly); 317RegisterPersistentComponentStateServiceCollectionExtensions.AddPersistentServiceRegistration<AntiforgeryStateProvider>(Services, RenderMode.InteractiveWebAssembly);
Rendering\WebAssemblyRenderer.cs (1)
79protected override IComponentRenderMode? GetComponentRenderMode(IComponent component) => RenderMode.InteractiveWebAssembly;
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
AuthenticationStateSerializer.cs (1)
25_subscription = persistentComponentState.RegisterOnPersisting(OnPersistingAsync, RenderMode.InteractiveWebAssembly);
Builder\WebAssemblyRazorComponentsEndpointConventionBuilderExtensions.cs (1)
23/// Configures the application to support the <see cref="RenderMode.InteractiveWebAssembly"/> render mode.
Microsoft.AspNetCore.Mvc.TagHelpers.Test (9)
PersistComponentStateTagHelperTest.cs (9)
22using RenderMode = Microsoft.AspNetCore.Components.Web.RenderMode; 95}, RenderMode.InteractiveWebAssembly); 114EndpointHtmlRenderer.UpdateSaveStateRenderMode(tagHelper.ViewContext.HttpContext, RenderMode.InteractiveWebAssembly); 125}, RenderMode.InteractiveWebAssembly); 154}, RenderMode.InteractiveServer); 196EndpointHtmlRenderer.UpdateSaveStateRenderMode(tagHelper.ViewContext.HttpContext, Components.Web.RenderMode.InteractiveServer); 207}, RenderMode.InteractiveServer); 228EndpointHtmlRenderer.UpdateSaveStateRenderMode(tagHelper.ViewContext.HttpContext, Components.Web.RenderMode.InteractiveServer); 229EndpointHtmlRenderer.UpdateSaveStateRenderMode(tagHelper.ViewContext.HttpContext, Components.Web.RenderMode.InteractiveWebAssembly);
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
Rendering\HtmlHelperComponentExtensions.cs (2)
74RenderMode.ServerPrerendered => Components.Web.RenderMode.InteractiveServer, 76RenderMode.WebAssemblyPrerendered => Components.Web.RenderMode.InteractiveWebAssembly,