public bool Create(VirtualHost virtualHost, Exchange exchange) { return Create(virtualHost, exchange, ExchangeOptions.Default); }
public bool Exists(VirtualHost virtualHost, Exchange exchange) { return Exchanges(virtualHost).Any(e => e.Name == exchange.Name); }
public bool Create(VirtualHost virtualHost, Exchange exchange, Queue queue) { return Create(virtualHost, exchange, queue, BindingOptions.Default); }
public bool Create(VirtualHost virtualHost, Exchange exchange, Queue queue, BindingOptions options) { return Client.Post(options, "bindings/:vhost/e/:exchange/q/:queue", new { vhost = virtualHost.Name, exchange = exchange.Name, queue = queue.Name }).Is(HttpStatusCode.Created); }
public bool Create(VirtualHost virtualHost, Exchange exchange, ExchangeOptions options) { return Client.Put(options, "exchanges/:vhost/:name", new { vhost = virtualHost.Name, exchange.Name, }).Is(HttpStatusCode.NoContent); }