From db23960781a6bd174919eb867130d0ecb2849c40 Mon Sep 17 00:00:00 2001 From: Wojciech Szmidt Date: Tue, 25 Apr 2023 08:24:12 +0200 Subject: [PATCH] Fixes before review --- Forte.React.AspNetCore/React/ReactService.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Forte.React.AspNetCore/React/ReactService.cs b/Forte.React.AspNetCore/React/ReactService.cs index 2b5c741..4a8c592 100644 --- a/Forte.React.AspNetCore/React/ReactService.cs +++ b/Forte.React.AspNetCore/React/ReactService.cs @@ -49,7 +49,7 @@ private ReactService(INodeJSService nodeJsService, ReactConfiguration config) _config = config; } - private async Task ASD(Component component, object props, params object[] args) + private async Task InvokeRenderTo(Component component, object props, params object[] args) { var allArgs = new List() { component.Name, component.JsonContainerId, props, _config.ScriptUrls, _config.NameOfObjectToSaveProps }; allArgs.AddRange(args); @@ -94,7 +94,7 @@ public async Task RenderToStringAsync(string componentName, object props return WrapRenderedStringComponent(string.Empty, component); } - var result = await ASD(component, props); + var result = await InvokeRenderTo(component, props); return WrapRenderedStringComponent(result, component); } @@ -112,7 +112,7 @@ public async Task WriteOutputHtmlToAsync(TextWriter writer, string componentName return; } - var result = await ASD(component, props, + var result = await InvokeRenderTo(component, props, writeOutputHtmlToOptions ?? new WriteOutputHtmlToOptions()); using var reader = new StreamReader(await result.Content.ReadAsStreamAsync());