public MQTypedMessageConsumeExecutor(IMQServiceProvider provider, IMQMessageDeserializer <TMessage> deserializer) { _serviceScope = provider.CreateScope(); _deserializer = deserializer; _typedMessageConsumer = new Lazy <IMQTypedMessageConsumer <TMessage, TContent> >(ResolveTypedMessageConsumer); }
public MQMessageConsumeExecutor(IMQServiceProvider provider) { _serviceScope = provider.CreateScope(); _messageConsumer = new Lazy <IMQMessageConsumer <TMessage> >(ResolveMessageConsumer); }