/// <summary>
 /// Base class for implementing <see cref="IReactiveServiceConnection"/>.
 /// </summary>
 /// <param name="serviceProvider">The service provider.</param>
 /// <param name="commandTextParser">The command text parser.</param>
 /// <param name="commandResponseFactory">The command response factory.</param>
 public ReactiveServiceConnection(
     IReactiveServiceProvider <TExpression> serviceProvider,
     ICommandTextParser <TExpression> commandTextParser,
     ICommandResponseFactory commandResponseFactory)
 {
     _serviceProvider        = serviceProvider;
     _commandTextParser      = commandTextParser;
     _commandResponseFactory = commandResponseFactory;
     _executor = new CommandExecutor(this);
 }
Exemplo n.º 2
0
 public AgentsTestContext(IReactiveExpressionServices expressionServices, IReactiveServiceProvider serviceProvider)
     : base(expressionServices, serviceProvider)
 {
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes the remoting client context using a given service provider.
 /// </summary>
 /// <param name="expressionServices">The expression services for normalization of expressions.</param>
 /// <param name="serviceProvider">The service provider underlying the client context.</param>
 public RemotingClientContext(IReactiveExpressionServices expressionServices, IReactiveServiceProvider serviceProvider)
     : base(expressionServices, serviceProvider)
 {
 }
Exemplo n.º 4
0
 /// <summary>
 /// Creates a new reactive processing context using the specified services.
 /// </summary>
 /// <param name="expressionServices">Expression tree services.</param>
 /// <param name="clientServiceProvider">Client/service provider.</param>
 protected ReactiveClientContext(IReactiveExpressionServices expressionServices, IReactiveServiceProvider clientServiceProvider)
     : this(expressionServices, clientServiceProvider, clientServiceProvider, clientServiceProvider)
 {
 }
Exemplo n.º 5
0
 public MyContext(IReactiveServiceProvider provider)
     : base(provider)
 {
 }
Exemplo n.º 6
0
 public TestClientContext(IReactiveServiceProvider serviceProvider)
     : base(new TestExpressionServices(), serviceProvider)
 {
 }
Exemplo n.º 7
0
 public TupletizingClientContext(IReactiveServiceProvider provider)
     : base(new ExpressionService(), provider)
 {
 }
Exemplo n.º 8
0
 public SubscriptionContext(IReactiveExpressionServices expressionServices, IReactiveServiceProvider serviceProvider)
     : base(expressionServices, serviceProvider)
 {
 }
Exemplo n.º 9
0
 /// <summary>
 /// Instantiates the client context.
 /// </summary>
 /// <param name="expressionServices">The expression rewrite services.</param>
 /// <param name="serviceProvider">The service provider.</param>
 public ReificationClientContext(IReactiveExpressionServices expressionServices, IReactiveServiceProvider serviceProvider)
     : base(expressionServices, serviceProvider)
 {
     // NB: base used to accept new TupletizingExpressionServices(typeof(IReactiveClientProxy)), which has dependencies on DataModel etc.
 }
 public LocalReactiveServiceProvider(IReactiveServiceProvider provider)
 {
     _provider = provider;
 }
Exemplo n.º 11
0
 public ClientContext(IReactiveServiceProvider provider) : base(new ExpressionServices(), provider)
 {
 }