Exemple #1
0
        //protected TrackContext _track { get; private set; } = null;

        public MessageClientBase(
            MessageClientOptions options,
            //TrackContext track,
            IServiceProvider services,
            ILogger logger)
        {
            this._options  = options;
            this._services = services;
            //this._track = track;

            var connfac = new ConnectionFactory()
            {
                Uri = new Uri(options.ConnectionURL)
            };

            this.connection = connfac.CreateConnection(this._options.ConnectionName);
            this.channel    = this.connection.CreateModel();
        }
Exemple #2
0
 public MessageClient(
     MessageClientOptions options,
     IServiceProvider services,
     ILogger logger) : base(options, services, logger)
 {
 }