Ejemplo n.º 1
0
 public JsResultCommand(IWebView webView, IJavascriptToCSharpConverter converter, IResultCommand resultCommand)
 {
     _WebView = webView;
     _JavascriptToCSharpConverter = converter;
     _JSResultCommand             = resultCommand;
     JSValue = _WebView.Factory.CreateObject(true);
 }
Ejemplo n.º 2
0
 public JsResultCommand(IWebView webView, IJavascriptToCSharpConverter converter, IResultCommand resultCommand)
 {
     _WebView = webView;
     _JavascriptToCSharpConverter = converter;
     _JSResultCommand = resultCommand;
     JSValue = _WebView.Factory.CreateObject(true);
 }
Ejemplo n.º 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)));
        }
Ejemplo n.º 4
0
 public JsResultCommand(HtmlViewContext context, ICSharpUnrootedObjectManager manager, IJavascriptToGlueMapper converter, IResultCommand <TResult> resultCommand) :
     base(context, manager, converter)
 {
     _JsResultCommand = resultCommand;
 }
Ejemplo n.º 5
0
 public JSResultCommand(IWebView ijsobject, IResultCommand icValue)
 {
     _IWebView        = ijsobject;
     _JSResultCommand = icValue;
     JSValue          = _IWebView.Factory.CreateObject(true);
 }
Ejemplo n.º 6
0
 public JsResultCommand Build(IResultCommand command)
 {
     return new JsResultCommand(_HTMLViewContext.WebView, _JavascriptToCSharpConverter, command);
 }
Ejemplo n.º 7
0
 public JsResultCommand(HTMLViewContext context, IJavascriptToCSharpConverter converter, IResultCommand resultCommand)
 {
     _HTMLViewContext             = context;
     _JavascriptToCSharpConverter = converter;
     _JSResultCommand             = resultCommand;
 }
Ejemplo n.º 8
0
 public JsMappableResultCommand(HtmlViewContext context, IJavascriptToCSharpConverter converter, IResultCommand <TResult> resultCommand)
     : base(context, converter, resultCommand)
 {
 }
Ejemplo n.º 9
0
 public JsResultCommand(HtmlViewContext context, IJavascriptToCSharpConverter converter, IResultCommand <TArg, TResult> resultCommand) :
     base(context, converter)
 {
     _JsResultCommand = resultCommand;
 }
Ejemplo n.º 10
0
 public void CreateResult(IResultCommand resultCommand)
 {
     ResultCommand = resultCommand;
 }
Ejemplo n.º 11
0
 public JsResultCommand <TResult> Build <TResult>(IResultCommand <TResult> command)
 {
     return(Cache(command, new JsMappableResultCommand <TResult>(_HtmlViewContext, UnrootedObjectManager, _JavascriptToGlueMapper, command)));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 14
0
 public JsResultCommand Build(IResultCommand command)
 {
     return(Cache(command, new JsMappableResultCommand(_HtmlViewContext, _JavascriptToCSharpConverter, command)));
 }
 public JSResultCommand(IJSOBuilder builder, IResultCommand icValue)
 {
     _JSResultCommand = icValue;
     JSValue          = builder.CreateJSO();
 }
Ejemplo n.º 16
0
 public JSResultCommand(IWebView ijsobject, IResultCommand icValue)
 {
     _IWebView = ijsobject;
     _JSResultCommand = icValue;
     JSValue = _IWebView.Factory.CreateObject(true);
 }
Ejemplo n.º 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;          
 }
Ejemplo n.º 20
0
 public JSResultCommand(CefV8CompleteContext ijsobject, IJSOBuilder builder, IResultCommand icValue)
 {
     _CefV8Context = ijsobject;
     _JSResultCommand = icValue;
     JSValue = builder.CreateJSO();    
 }
Ejemplo n.º 21
0
 public JsResultCommand Build(IResultCommand command)
 {
     return(new JsResultCommand(_HTMLViewContext, _JavascriptToCSharpConverter, command));
 }
Ejemplo n.º 22
0
 protected override void AssignParameters(List <CommandParameterBase> commandParameters)
 {
     LHS = (IVariableCommand)commandParameters[0];
     RHS = (IResultCommand)commandParameters[1];
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 25
0
 public int Update(IResultCommand command)
 {
     return(Database.Execute(command.SqlRaw, command.Parameters));
 }
Ejemplo n.º 26
0
 public JSResultCommand(IJSOBuilder builder, IResultCommand icValue)
 {
     _JSResultCommand = icValue;
     JSValue = builder.CreateJSO();    
 }