public void Initialize(string username, string server)
        {
            var concurrencyService = new ConcurrencyService();

            context = NetMQContext.Create();

            var tickerClient = new TickerClient(context, server);
            var netMQHeartBeatClient = NetMQHeartBeatClient.CreateInstance(context, server);
            HeartBeatClient = new HeartBeatClient();

            var tickerFactory = new TickerFactory();
            TickerRepository = new TickerRepository(tickerClient, tickerFactory);
        }
Exemplo n.º 2
0
        public void Initialize(string username, string server, string authToken = null)
        {
            _connectionProvider = new ConnectionProvider(username, server);

            var tickerHubClient = new TickerHubClient(_connectionProvider);

            //if (authToken != null)
            //{
            //    var controlServiceClient = new ControlServiceClient(new AuthTokenProvider(authToken), _connectionProvider, _loggerFactory);
            //    _controlRepository = new ControlRepository(controlServiceClient);
            //}

            var concurrencyService = new ConcurrencyService();

            var tickerFactory = new TickerFactory();
            TickerRepository = new TickerRepository(tickerHubClient, tickerFactory);
        }