public RARController(/*IHttpContextAccessor httpContextAccessor, */ RARContext repositoryContext, IConfiguration configuration, ILogger <RARController> logger, IHostingEnvironment hostingEnvironment) { /*_httpContextAccessor = httpContextAccessor;*/ RepositoryContext = repositoryContext; logger.LogInformation("Controller StoricoCartelleController started!"); _hostingEnvironment = hostingEnvironment; _configuration = configuration; _logger = logger; var executingAssembly = Assembly.GetExecutingAssembly(); log4net.Repository.ILoggerRepository rootRepository = log4net.LogManager.GetRepository(executingAssembly); foreach (var appender in rootRepository.GetAppenders()) { if (appender.Name.Equals("RollingFile") && appender is log4net.Appender.FileAppender) { var fileAppender = appender as log4net.Appender.FileAppender; fileAppender.File = "Log" + "\\rarapi_" + DateTime.Now.ToString("yyyyMMdd") + ".log"; fileAppender.ActivateOptions(); } } }
// Inject dependencies in controller public LoadMissingController(RARContext repositoryContext, IConfiguration configuration, ILogger <LoadMissingController> logger, IHostingEnvironment hostingEnvironment) : base(repositoryContext, configuration, logger, hostingEnvironment) { _outputNames = new List <string>(); _outputFolder = _configuration["OutputFolder"]; _uploadFolder = _configuration["UploadFolder"]; _lostFolder = _configuration["Lost"]; //_baseAddress = ApplicationSettings.WebApiUrl; _fileExtensionAllowedToUpload = _configuration["FileExtensionAllowedToUpload"].ToLower(); _sharedOutputFolder = _configuration["SharedOutputFolder"]; _hostPath = (_sharedOutputFolder.Split("\\"))[0]; // try to retrive timeout for appsettings bool conversion = Int32.TryParse(_configuration["Timeout"], out _timeout); // if dont find any timeout definied set it to 15 seconds if (!conversion) { _timeout = 15000; } }
public SP_new_dettaglio_distinte_storico_cartelle_3(RARContext _context) { context = _context; }
public SP_count_code_racc_from_new_immagini_pmrRepository(RARContext context) : base(context) { }
// Inject dependencies in controller public StoricoCartelleController(IStoricoCartelleService storicoCartelleService, RARContext repositoryContext, IConfiguration configuration, ILogger <StoricoCartelleController> logger, IHostingEnvironment hostingEnvironment) : base(repositoryContext, configuration, logger, hostingEnvironment) { _storicoCartelleService = storicoCartelleService; }
public SP_new_dettaglio_racc_storico_cartelle(RARContext _context) { context = _context; }
public QueryManagerRepository(RARContext context) : base(context) { }
public New_Dispaccio_In_Chiusura(RARContext _context) { context = _context; }
public QueryManagerController(IQueryManagerService queryManagerService, RARContext repositoryContext, IConfiguration configuration, ILogger <QueryManagerController> logger, IHostingEnvironment hostingEnvironment) : base(repositoryContext, configuration, logger, hostingEnvironment) { this.queryManagerService = queryManagerService; }
public SP_new_dettaglio_distinte_storico_dett_immagini_arRepository(RARContext context) : base(context) { }
public New_Dispaccio_In_Apertura(RARContext _context) { context = _context; }
public SP_count_code_racc_from_new_immagini_pmr(RARContext _context) { context = _context; }
public SP_controlla_esiti_scartati(RARContext _context) { context = _context; }
public RepositoryBase(RARContext repositoryContext) { this.RepositoryContext = repositoryContext; }
public SP_temp_storico_cartelle(RARContext _context) { context = _context; }
public New_Cartoline_Dispaccio_In_Del_Tracciatura(RARContext _context) { context = _context; }
public New_Dispaccio_In_Arrivo(RARContext _context) { context = _context; }
public DammiQueryRepository(RARContext context) : base(context) { }
public New_Cartoline_Dispaccio_In_From_Id_Dispaccio(RARContext _context) { context = _context; }
public NewDispaccioInRepository(RARContext context) : base(context) { }
public CaricaQuery(RARContext _context) { context = _context; }
public SP_aggiorna_esa_racc(RARContext _context) { context = _context; }
public CaricaQueryRepository(RARContext context) : base(context) { }
public LookupController(ILookupService lookupService, RARContext repositoryContext, IConfiguration configuration, ILogger <LookupController> logger, IHostingEnvironment hostingEnvironment) : base(repositoryContext, configuration, logger, hostingEnvironment) { _lookupService = lookupService; }
public SP_temp_storico_cartelleRepository(RARContext context) : base(context) { }
// Inject dependencies in controller public GeneraXls(ILogger logger, RARContext context) { _context = context; _logger = logger; }
public SP_new_dettaglio_distinte_storico_dett_immagini_pmr(RARContext _context) { context = _context; }
public SP_new_dettaglio_elenco_racc_storico_cartelleRepository(RARContext context) : base(context) { }
public SP_new_dettaglio_distinte_storico_cartelleRepository(RARContext context) : base(context) { }
public DispaccioRepository(RARContext context) : base(context) { }