public ConsumerManager(
     IRabbitMQService rabbitMQServices,
     IMailSender mailSender,
     IObjectConvertFormat objectConvertFormat
     )
 {
     _rabbitMQServices    = rabbitMQServices;
     _mailSender          = mailSender ?? throw new ArgumentNullException(nameof(mailSender));
     _objectConvertFormat = objectConvertFormat;
 }
Exemplo n.º 2
0
 public Receiver(
     IRabbitMQService rabbitMQServices,
     IRabbitMQConfiguration rabbitMQConfiguration,
     IMailSender mailSender,
     IObjectConvertFormat objectConvertFormat
     )
 {
     _rabbitMQServices      = rabbitMQServices;
     _rabbitMQConfiguration = rabbitMQConfiguration;
     _mailSender            = mailSender ?? throw new ArgumentNullException(nameof(mailSender));
     _objectConvertFormat   = objectConvertFormat;
 }
        //private dynamic _channel;
        //private dynamic _connection;

        public PublisherManager(IRabbitMQService rabbitMQServices, IObjectConvertFormat objectConvertFormat)
        {
            _rabbitMQServices    = rabbitMQServices;
            _objectConvertFormat = objectConvertFormat;
        }