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

            this.log = log;
        }
示例#2
0
        public TemplatesClient(IHttpClientFactory httpClientFactory, IOptions <TemplatesOptions> options)
        {
            this.httpClientFactory = httpClientFactory;

            this.options = options.Value;
        }