Пример #1
0
 public JsResultCommand(IWebView webView, IJavascriptToCSharpConverter converter, IResultCommand resultCommand)
 {
     _WebView = webView;
     _JavascriptToCSharpConverter = converter;
     _JSResultCommand             = resultCommand;
     JSValue = _WebView.Factory.CreateObject(true);
 }
Пример #2
0
 public JsResultCommand(IWebView webView, IJavascriptToCSharpConverter converter, IResultCommand resultCommand)
 {
     _WebView = webView;
     _JavascriptToCSharpConverter = converter;
     _JSResultCommand = resultCommand;
     JSValue = _WebView.Factory.CreateObject(true);
 }
Пример #3
0
        public static IResultCommand <T, TResult2> Select <T, TResult, TResult2>(this IResultCommand <T, TResult> command, Func <TResult, TResult2> selector)
        {
            if (command is AggregateResultCommand <T, TResult> )
            {
                return((command as AggregateResultCommand <T, TResult>).Select(selector));
            }

            if (command is DelegateResultCommand <T, TResult> )
            {
                return((command as DelegateResultCommand <T, TResult>).Select(selector));
            }

            return(Create <T, TResult2>(param => command.Results.Select(selector)));
        }
Пример #4
0
 public JsResultCommand(HtmlViewContext context, ICSharpUnrootedObjectManager manager, IJavascriptToGlueMapper converter, IResultCommand <TResult> resultCommand) :
     base(context, manager, converter)
 {
     _JsResultCommand = resultCommand;
 }
Пример #5
0
 public JSResultCommand(IWebView ijsobject, IResultCommand icValue)
 {
     _IWebView        = ijsobject;
     _JSResultCommand = icValue;
     JSValue          = _IWebView.Factory.CreateObject(true);
 }
Пример #6
0
 public JsResultCommand Build(IResultCommand command)
 {
     return new JsResultCommand(_HTMLViewContext.WebView, _JavascriptToCSharpConverter, command);
 }
Пример #7
0
 public JsResultCommand(HTMLViewContext context, IJavascriptToCSharpConverter converter, IResultCommand resultCommand)
 {
     _HTMLViewContext             = context;
     _JavascriptToCSharpConverter = converter;
     _JSResultCommand             = resultCommand;
 }
Пример #8
0
 public JsMappableResultCommand(HtmlViewContext context, IJavascriptToCSharpConverter converter, IResultCommand <TResult> resultCommand)
     : base(context, converter, resultCommand)
 {
 }
Пример #9
0
 public JsResultCommand(HtmlViewContext context, IJavascriptToCSharpConverter converter, IResultCommand <TArg, TResult> resultCommand) :
     base(context, converter)
 {
     _JsResultCommand = resultCommand;
 }
Пример #10
0
 public void CreateResult(IResultCommand resultCommand)
 {
     ResultCommand = resultCommand;
 }
Пример #11
0
 public JsResultCommand <TResult> Build <TResult>(IResultCommand <TResult> command)
 {
     return(Cache(command, new JsMappableResultCommand <TResult>(_HtmlViewContext, UnrootedObjectManager, _JavascriptToGlueMapper, command)));
 }
Пример #12
0
 public static AggregateResultCommand <T, TResult> With <T, TResult>(this IResultCommand <T, TResult> command, Func <T, IEnumerable <TResult> > func)
 {
     return(new AggregateResultCommand <T, TResult>().With(command).With(func));
 }
Пример #13
0
 public static AggregateResultCommand <T, TResult> With <T, TResult>(this IResultCommand <T, TResult> command, IResultCommand <T, TResult> withCommand)
 {
     return(new AggregateResultCommand <T, TResult>().With(command).With(withCommand));
 }
 public JsResultCommand Build(IResultCommand command)
 {
     return(Cache(command, new JsMappableResultCommand(_HtmlViewContext, _JavascriptToCSharpConverter, command)));
 }
 public JSResultCommand(IJSOBuilder builder, IResultCommand icValue)
 {
     _JSResultCommand = icValue;
     JSValue          = builder.CreateJSO();
 }
Пример #16
0
 public JSResultCommand(IWebView ijsobject, IResultCommand icValue)
 {
     _IWebView = ijsobject;
     _JSResultCommand = icValue;
     JSValue = _IWebView.Factory.CreateObject(true);
 }
Пример #17
0
 public JsResultCommand <TResult> Build <TResult>(IResultCommand <TResult> command)
 {
     return(Cache(command, new JsResultCommand <TResult>(_HtmlViewContext, _JavascriptToCSharpConverter, command)));
 }
 public static TResult Execute <TResult>(this IDispatcher dispatcher, IResultCommand <TResult> command)
 {
     return((TResult)dispatcher.Dispatch(command));
 }
 public JsResultCommand(HTMLViewContext context, IJavascriptToCSharpConverter converter, IResultCommand resultCommand)
 {
     _HTMLViewContext = context;
     _JavascriptToCSharpConverter = converter;
     _JSResultCommand = resultCommand;          
 }
Пример #20
0
 public JSResultCommand(CefV8CompleteContext ijsobject, IJSOBuilder builder, IResultCommand icValue)
 {
     _CefV8Context = ijsobject;
     _JSResultCommand = icValue;
     JSValue = builder.CreateJSO();    
 }
Пример #21
0
 public JsResultCommand Build(IResultCommand command)
 {
     return(new JsResultCommand(_HTMLViewContext, _JavascriptToCSharpConverter, command));
 }
Пример #22
0
 protected override void AssignParameters(List <CommandParameterBase> commandParameters)
 {
     LHS = (IVariableCommand)commandParameters[0];
     RHS = (IResultCommand)commandParameters[1];
 }
Пример #23
0
 public JsMappableResultCommand(HtmlViewContext context, ICSharpUnrootedObjectManager manager, IJavascriptToGlueMapper converter, IResultCommand <TArg, TResult> resultCommand)
     : base(context, manager, converter, resultCommand)
 {
 }
 public AggregateResultCommand <TResult> With(IResultCommand <TResult> command)
 {
     commands.Add(command);
     return(this);
 }
Пример #25
0
 public int Update(IResultCommand command)
 {
     return(Database.Execute(command.SqlRaw, command.Parameters));
 }
Пример #26
0
 public JSResultCommand(IJSOBuilder builder, IResultCommand icValue)
 {
     _JSResultCommand = icValue;
     JSValue = builder.CreateJSO();    
 }