81 references to RenderMode
BasicTestApp (1)
PreserveStateService.cs (1)
19_persistingSubscription = _componentApplicationState.RegisterOnPersisting(PersistState, RenderMode.InteractiveAuto);
Microsoft.AspNetCore.Components.Endpoints (7)
DependencyInjection\RazorComponentsServiceCollectionExtensions.cs (2)
79RegisterPersistentComponentStateServiceCollectionExtensions.AddPersistentServiceRegistration<ResourceCollectionProvider>(services, RenderMode.InteractiveWebAssembly); 88RegisterPersistentComponentStateServiceCollectionExtensions.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)
127componentApplicationLifetime.SetPlatformRenderMode(RenderMode.InteractiveAuto);
Microsoft.AspNetCore.Components.Endpoints.Tests (50)
EndpointHtmlRendererTest.cs (36)
171var result = await renderer.PrerenderComponentAsync(httpContext, typeof(SimpleComponent), RenderMode.InteractiveWebAssembly, ParameterView.Empty); 285RenderMode.InteractiveWebAssembly, 335RenderMode.InteractiveWebAssembly, 432var result = await renderer.PrerenderComponentAsync(httpContext, typeof(SimpleComponent), RenderMode.InteractiveServer, ParameterView.Empty); 476var server = await renderer.PrerenderComponentAsync(httpContext, typeof(GreetingComponent), RenderMode.InteractiveServer, parameters); 477var client = await renderer.PrerenderComponentAsync(httpContext, typeof(GreetingComponent), RenderMode.InteractiveWebAssembly, parameters); 629var result = await renderer.PrerenderComponentAsync(httpContext, typeof(GreetingComponent), RenderMode.InteractiveServer, parameters); 680var result = await renderer.PrerenderComponentAsync(httpContext, typeof(GreetingComponent), RenderMode.InteractiveServer, parameters); 1343RenderMode.InteractiveServer, 1344RenderMode.InteractiveWebAssembly 1381var declaredRenderModesMetadata = new ConfiguredRenderModesMetadata([RenderMode.InteractiveServer, RenderMode.InteractiveWebAssembly]); 1403"server" => RenderMode.InteractiveServer, 1404"wasm" => RenderMode.InteractiveWebAssembly, 1405"auto" => RenderMode.InteractiveAuto, 1409var declaredRenderModesMetadata = new ConfiguredRenderModesMetadata([RenderMode.InteractiveServer, RenderMode.InteractiveWebAssembly]); 1457"server" => RenderMode.InteractiveServer, 1458"wasm" => RenderMode.InteractiveWebAssembly, 1459"auto" => RenderMode.InteractiveAuto, 1501var declaredRenderModesMetadata = new ConfiguredRenderModesMetadata([RenderMode.InteractiveServer, RenderMode.InteractiveWebAssembly]); 1526"server" => RenderMode.InteractiveServer, 1527"wasm" => RenderMode.InteractiveWebAssembly, 1528"auto" => RenderMode.InteractiveAuto, 1531var declaredRenderModesMetadata = new ConfiguredRenderModesMetadata([RenderMode.InteractiveServer, RenderMode.InteractiveWebAssembly]); 1582"server" => RenderMode.InteractiveServer, 1583"wasm" => RenderMode.InteractiveWebAssembly, 1584"auto" => RenderMode.InteractiveAuto, 1590"server" => RenderMode.InteractiveServer, 1591"wasm" => RenderMode.InteractiveWebAssembly, 1592"auto" => RenderMode.InteractiveAuto, 1766State.RegisterOnPersisting(PersistState, RenderMode.InteractiveServer); 1769State.RegisterOnPersisting(PersistState, RenderMode.InteractiveWebAssembly); 1772State.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 (5)
Builder\ServerRazorComponentsEndpointConventionBuilderExtensions.cs (1)
19/// Configures the application to support the <see cref="RenderMode.InteractiveServer"/> render mode.
Circuits\CircuitFactory.cs (1)
78appLifetime.SetPlatformRenderMode(RenderMode.InteractiveServer);
Circuits\CircuitHost.cs (1)
785appLifetime.SetPlatformRenderMode(RenderMode.InteractiveServer);
Circuits\CircuitPersistenceManager.cs (1)
29RenderMode.InteractiveServer);
Circuits\RemoteRenderer.cs (1)
68protected 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)
332RegisterPersistentComponentStateServiceCollectionExtensions.AddPersistentServiceRegistration<ResourceCollectionProvider>(Services, RenderMode.InteractiveWebAssembly); 338RegisterPersistentComponentStateServiceCollectionExtensions.AddPersistentServiceRegistration<AntiforgeryStateProvider>(Services, RenderMode.InteractiveWebAssembly);
Rendering\WebAssemblyRenderer.cs (1)
80protected 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,