internal static async Task<IHTMLBinding> Bind(HTMLViewEngine viewEngine, object iViewModel, JavascriptBindingMode iMode, object additional = null) { var mapper = viewEngine.GetMapper(iViewModel, iMode ); var res = new HTML_Binding(mapper, viewEngine.Logger); await mapper.Init(additional); return res; }
internal static async Task <IHTMLBinding> Bind(HTMLViewEngine viewEngine, object iViewModel, JavascriptBindingMode iMode, object additional = null) { var mapper = viewEngine.GetMapper(iViewModel, iMode); var res = new HTML_Binding(mapper, viewEngine.Logger); await mapper.Init(additional); return(res); }
internal static async Task <IBindingBuilder> GetBindingBuilder(HTMLViewEngine viewEngine, object viewModel, JavascriptBindingMode mode, object additional = null, IJavascriptObjectBuilderStrategyFactory strategyFactory = null) { var mapper = viewEngine.GetMapper(viewModel, mode, strategyFactory); var bindingBuilder = new BindingBuilder(mapper, viewEngine.Logger, additional); await bindingBuilder.Init(); return(bindingBuilder); }