private async Task <IJSCSGlue> Map(object from, IJavascriptSessionCache cacher = null) { cacher = cacher ?? _ICSharpMapper; var res = await _HTMLViewContext.EvaluateOnUIContextAsync(() => _ConverTOJSO.Map(from)); await _HTMLViewContext.RunOnJavascriptContextAsync(() => { res.ComputeJavascriptValue(_HTMLViewContext.WebView.Factory, _HTMLViewContext.ViewModelUpdater, cacher); }); return(res); }
private async Task <IJSCSGlue> Map(object from, IJavascriptSessionCache cacher = null) { cacher = cacher ?? _ICSharpMapper; var res = await _HTMLViewContext.EvaluateOnUIContextAsync(() => _ConverTOJSO.Map(from)); await _HTMLViewContext.RunOnJavascriptContextAsync(() => { var builder = GetStrategy(_HTMLViewContext.WebView, cacher, false); builder.UpdateJavascriptValue(res); }); return(res); }