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; }
public HogeHostedService(IHoge hoge) { this.hoge = hoge; }