Adaptive.ReactiveTrader.Server.Pricing.PricePublisher.Start C# (CSharp) Метод

Start() публичный Метод

public Start ( ) : System.Threading.Tasks.Task
Результат System.Threading.Tasks.Task
        public async Task Start()
        {
            var endpoint = await _broker.GetPublicEndPoint<SpotPriceDto>("prices");

            _disp = _priceStream.Subscribe(endpoint);

            Log.Information("Started price publishing to 'prices'");
        }
    }

Usage Example

Пример #1
0
        private void StartPricePublisher()
        {
            var priceTrunkStream = _service.GetAllPriceUpdates(); // TODO dispose this when service host goes down
            var priceTrunk       = new PricePublisher(priceTrunkStream, _broker);

            priceTrunk.Start().Wait();
        }
All Usage Examples Of Adaptive.ReactiveTrader.Server.Pricing.PricePublisher::Start