Ejemplo n.º 1
0
 public SampleService(IApplicationLifetime appLifetime,
                      IConfiguration config,
                      IOptions <JsonSettingModel> json,
                      IOptions <IniSettingModel> ini,
                      IOptions <XmlSettingModel> xml,
                      IOptions <UserSecretSettingModel> userSecret,
                      IOptions <CommandLineSettingModel> commandLine,
                      ILogger <SampleService> logger,
                      IHoge hoge
                      )
 {
     this.appLifetime = appLifetime;
     this.config      = config;
     this.json        = json.Value;
     this.ini         = ini.Value;
     this.xml         = xml.Value;
     this.userSecret  = userSecret.Value;
     this.commandLine = commandLine.Value;
     this.logger      = logger;
     this.hoge        = hoge;
 }
Ejemplo n.º 2
0
 public HogeHostedService(IHoge hoge)
 {
     this.hoge = hoge;
 }