public ComponentRenderer( StaticComponentRenderer staticComponentRenderer, ServerComponentSerializer serverComponentSerializer, WebAssemblyComponentSerializer WebAssemblyComponentSerializer) { _staticComponentRenderer = staticComponentRenderer; _serverComponentSerializer = serverComponentSerializer; _WebAssemblyComponentSerializer = WebAssemblyComponentSerializer; }
public ComponentRenderer( StaticComponentRenderer staticComponentRenderer, ServerComponentSerializer serverComponentSerializer, IViewBufferScope viewBufferScope) { _staticComponentRenderer = staticComponentRenderer; _serverComponentSerializer = serverComponentSerializer; _viewBufferScope = viewBufferScope; }
private ServerComponentMarker[] CreateMarkers(params Type[] types) { var serializer = new ServerComponentSerializer(_ephemeralDataProtectionProvider); var markers = new ServerComponentMarker[types.Length]; for (var i = 0; i < types.Length; i++) { markers[i] = serializer.SerializeInvocation(_invocationSequence, types[i], ParameterView.Empty, false); } return(markers); }