Пример #1
0
        public QueueServerConfiguration UseRabbitMq(QueueServerConnectionParams configuration)
        {
            var options = new QueueServerConfiguration
            {
                Uri = new Uri($"{configuration.Protocol}://{configuration.User}:{configuration.Password}@{configuration.Host}:{configuration.Port}")
            };

            return(options);
        }
Пример #2
0
 public QueueService(QueueServerConfiguration options)
 {
     var connectionFactory = new ConnectionFactory {
         Uri = options.Uri
     };
 }
Пример #3
0
 public QueueServer(QueueServerConfiguration configuration) : base(configuration)
 {
 }