Exemple #1
0
        private static IReactiveServiceProvider GetServiceProvider(IRemotingReactiveServiceConnection connection)
        {
            var commandTextFactory = new CommandTextFactory <Expression>(new ClientSerializationHelpers());
            var localConnection    = new LocalReactiveServiceConnection(connection);

            return(new ReactiveServiceProvider(localConnection, commandTextFactory, commandTextFactory));
        }
 protected ReactivePlatformClientBase(IReactivePlatform platform)
 {
     _platform         = platform ?? throw new ArgumentNullException(nameof(platform));
     _queryCoordinator = platform.QueryCoordinator.GetInstance <IRemotingReactiveServiceConnection>();
     _messageRouter    = GetMessageRouter(platform);
     _tableClient      = GetTableClient(platform);
 }
Exemple #3
0
 public LocalReactiveServiceConnection(IRemotingReactiveServiceConnection connection)
 {
     _connection = connection;
 }
Exemple #4
0
 /// <summary>
 /// Initializes the remoting client context using a service connection interface.
 /// </summary>
 /// <param name="connection">The service connection.</param>
 public RemotingClientContext(IRemotingReactiveServiceConnection connection)
     : base(new TupletizingExpressionServices(typeof(IReactiveClientProxy)), GetServiceProvider(connection))
 {
 }
Exemple #5
0
 public ReactivePlatformClient(IRemotingReactiveServiceConnection queryCoordinator, IReactiveMessagingConnection messaging)
     : base(queryCoordinator, messaging)
 {
 }
 protected ReactivePlatformClientBase(IRemotingReactiveServiceConnection queryCoordinator, IReactiveMessagingConnection messaging)
 {
     _queryCoordinator = queryCoordinator;
     _messageRouter    = GetMessageRouter(messaging);
 }