Ejemplo n.º 1
0
        public QueueService(IServiceBusConfiguration configuration, ILogger logger,
                            IServiceBusMessageMapper mapper_to_brokered, IBrokeredMessageMapper mapper_to_message,
                            IServiceBusQueueContext queueContext)
        {
            if (configuration == null || string.IsNullOrEmpty(configuration.ConnectionString))
            {
                throw new DSWException(SERVICE_BASE_CONNECTIONSTRING_IS_EMPTY, null, DSWExceptionCode.SS_Mapper);
            }

            _instanceId         = Guid.NewGuid();
            _configuration      = configuration;
            _logger             = logger;
            _mapper_to_brokered = mapper_to_brokered;
            _mapper_to_message  = mapper_to_message;
            _queueContext       = queueContext;
        }