public async ValueTask PublishAsync(ClientRegistrationMessage valueToPublish) { var bytesToSend = valueToPublish.ServiceBusContractToByteArray(); await _client.PublishAsync(TopicNames.ClientRegistration, bytesToSend, true); }
public async ValueTask PublishAsync(BidAsk valueToPublish) { var bytesToSend = valueToPublish.ServiceBusContractToByteArray(); await _client.PublishAsync(TopicNames.BidAsk, bytesToSend, false); }
public async ValueTask PublishAsync(TradeVolume valueToPublish) { var bytesToSend = valueToPublish.ServiceBusContractToByteArray(); await _client.PublishAsync(TopicNames.PriceTradeVolume, bytesToSend, false); }