Esempio n. 1
0
        public ReceiveContextSendTransportProvider(IRabbitMqBusConfiguration busConfiguration, ReceiveContext receiveContext)
            : base(busConfiguration)
        {
            _receiveContext = receiveContext;

            _modelContext = receiveContext.GetPayload <ModelContext>();
        }
        public ReceiveContextPublishTransportProvider(ReceiveContext receiveContext, RabbitMqHost host, IRabbitMqPublishTopology publishTopology)
            : base(host, publishTopology)
        {
            _receiveContext = receiveContext;

            _modelContext = receiveContext.GetPayload <ModelContext>();
        }