public QueueMeta CreateQueueMeta(SubscriberQueueAttribute attribute) { var exchange = ExchangeMeta.DefineDefault(attribute.BusName, attribute.QueueName, config => { config.IsAutoDelete = false; config.IsDurable = true; config.IsPassive = false; config.IsExclusive = false; }); return(exchange.QueueMeta); }
public QueueMeta CreateQueueMeta(SubscriberQueueAttribute attribute) { var rpcAttribute = (RpcQueueAttribute)attribute; var exchange = ExchangeMeta.DefineDefault(rpcAttribute.BusName, rpcAttribute.QueueName, config => { config.IsAutoDelete = true; config.IsDurable = false; config.IsPassive = false; config.IsExclusive = false; }); exchange.IsRpcExchange = true; exchange.ActionNamespace = rpcAttribute.ActionNamespace; return(exchange.QueueMeta); }
public QueueMeta CreateQueueMeta(SubscriberQueueAttribute attribute) { var exchange = ExchangeMeta.Define(attribute.BusName, attribute.ExchangeName, ExchangeType.Fanout, config => { config.IsAutoDelete = true; config.IsDurable = false; config.IsPassive = false; config.IsPersistent = false; }); var queue = QueueMeta.Define(attribute.QueueName, exchange, config => { config.IsAutoDelete = true; config.IsDurable = false; config.IsPassive = false; config.IsExclusive = true; config.AppendUniqueId = true; }); return(queue); }