Skip to content

Commit

Permalink
Fixes before review
Browse files Browse the repository at this point in the history
  • Loading branch information
Wojciech Szmidt committed Apr 25, 2023
1 parent 17870b6 commit db23960
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Forte.React.AspNetCore/React/ReactService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ private ReactService(INodeJSService nodeJsService, ReactConfiguration config)
_config = config;
}

private async Task<T> ASD<T>(Component component, object props, params object[] args)
private async Task<T> InvokeRenderTo<T>(Component component, object props, params object[] args)
{
var allArgs = new List<object>() { component.Name, component.JsonContainerId, props, _config.ScriptUrls, _config.NameOfObjectToSaveProps };
allArgs.AddRange(args);
Expand Down Expand Up @@ -94,7 +94,7 @@ public async Task<string> RenderToStringAsync(string componentName, object props
return WrapRenderedStringComponent(string.Empty, component);
}

var result = await ASD<string>(component, props);
var result = await InvokeRenderTo<string>(component, props);

return WrapRenderedStringComponent(result, component);
}
Expand All @@ -112,7 +112,7 @@ public async Task WriteOutputHtmlToAsync(TextWriter writer, string componentName
return;
}

var result = await ASD<HttpResponseMessage>(component, props,
var result = await InvokeRenderTo<HttpResponseMessage>(component, props,
writeOutputHtmlToOptions ?? new WriteOutputHtmlToOptions());

using var reader = new StreamReader(await result.Content.ReadAsStreamAsync());
Expand Down

0 comments on commit db23960

Please sign in to comment.