public MessageProducer(IOptions <MessageProducerSettings> options) { Settings = options.Value; }
public MessageProducerService(IServiceProvider serviceProvider, IOptions <MessageProducerSettings> options) { Settings = options.Value; Services = serviceProvider; }
public MessageProducerService(IOptions <MessageProducerSettings> options, IMetadataCache cache) { _metadataCache = cache; Settings = options.Value; }