Example #1
0
        public MyHostedService(ILogger <MyHostedService> logger,
                               MyPerfectClass superInterface,
                               ISuperInterface2 superInterface2,
                               IOptions <MySuperSettings> options,
                               IHttpClientFactory httpClientFactory)
        {
            this.logger          = logger;
            this.superInterface  = superInterface;
            this.superInterface2 = superInterface2;

            this.httpClient = httpClientFactory.CreateClient();
            this.options    = options.Value;
        }
Example #2
0
 public MyPerfectTestClass(MyPerfectClass superInterface)
 {
     this.superInterface = superInterface;
 }