// This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { services.AddControllers(); var packageIntegrationServices = new PackageIntegrationServices(); Configuration.Bind("PackageIntegrationServices", packageIntegrationServices); services.AddSingleton(packageIntegrationServices); services.AddScoped <ContextoSSISDB>(); services.AddScoped <IExecucaoDtsxRepository, ExecucaoDtsxRepository>(); services.AddScoped <IProcessFileService, ProcessFileService>(); }
public ProcessFileService(IExecucaoDtsxRepository execucaoDtsxRepository, PackageIntegrationServices packageIntegrationServices) { this._execucaoDtsxRepository = execucaoDtsxRepository; this._packageIntegrationServices = packageIntegrationServices; }