public TemplateCommandMiddleware(TemplatesClient templatesClient, IOptions <TemplatesOptions> templateOptions, IUrlGenerator urlGenerator, ISemanticLog log) { this.templatesClient = templatesClient; this.templateOptions = templateOptions.Value; this.urlGenerator = urlGenerator; this.log = log; }
public TemplatesClient(IHttpClientFactory httpClientFactory, IOptions <TemplatesOptions> options) { this.httpClientFactory = httpClientFactory; this.options = options.Value; }