public async Task <bool> CreateAsync(VirtualHost virtualHost, Queue queue, QueueOptions options) { var response = await httpClient.Execute(HttpMethod.Put, "queues/{vhost}/{name}", new Dictionary <string, string> { { "vhost", virtualHost.Name }, { "name", queue.Name } }, options); return(response.StatusCode == HttpStatusCode.NoContent); }
public bool Create(VirtualHost virtualHost, Queue queue, QueueOptions options) { return(Client.Put(options, "queues/:vhost/:name", new { vhost = virtualHost.Name, queue.Name }) .Is(HttpStatusCode.NoContent)); }
public bool Create(VirtualHost virtualHost, Queue queue, QueueOptions options) { return(CreateAsync(virtualHost, queue, options).Result); }