public async Task CreateQueue(QueueConfiguration configuration, CancellationToken cancellationToken = default) { var serialize = await RequestSerializer.CreateQueueToJson(configuration).ConfigureAwait(false); await SendAsync("createQueue", serialize, cancellationToken).ConfigureAwait(false); }
private Task UpdateAddressAsync(string name, IEnumerable <RoutingType> routingTypes, CancellationToken cancellationToken) { var requestJson = RequestSerializer.AddressInfoToJson(name, routingTypes); return(SendAsync("updateAddress", requestJson, cancellationToken)); }
public async Task CreateAddress(string name, IEnumerable <RoutingType> routingTypes, CancellationToken cancellationToken) { var requestJson = RequestSerializer.CreateAddressToJson(name, routingTypes); await SendAsync("createAddress", requestJson, cancellationToken); }
private async Task UpdateQueueAsync(QueueConfiguration configuration, CancellationToken cancellationToken) { var serializedConfiguration = await RequestSerializer.QueueConfigurationToJson(configuration).ConfigureAwait(false); await SendAsync("updateQueue", serializedConfiguration, cancellationToken).ConfigureAwait(false); }