예제 #1
0
        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();
                }
            }
        }
예제 #2
0
        // 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;
            }
        }
예제 #3
0
 public SP_new_dettaglio_distinte_storico_cartelle_3(RARContext _context)
 {
     context = _context;
 }
예제 #4
0
 public SP_count_code_racc_from_new_immagini_pmrRepository(RARContext context) :
     base(context)
 {
 }
예제 #5
0
 // Inject dependencies in controller
 public StoricoCartelleController(IStoricoCartelleService storicoCartelleService, RARContext repositoryContext, IConfiguration configuration, ILogger <StoricoCartelleController> logger, IHostingEnvironment hostingEnvironment)
     : base(repositoryContext, configuration, logger, hostingEnvironment)
 {
     _storicoCartelleService = storicoCartelleService;
 }
예제 #6
0
 public SP_new_dettaglio_racc_storico_cartelle(RARContext _context)
 {
     context = _context;
 }
예제 #7
0
 public QueryManagerRepository(RARContext context) :
     base(context)
 {
 }
예제 #8
0
 public New_Dispaccio_In_Chiusura(RARContext _context)
 {
     context = _context;
 }
예제 #9
0
 public QueryManagerController(IQueryManagerService queryManagerService, RARContext repositoryContext, IConfiguration configuration, ILogger <QueryManagerController> logger, IHostingEnvironment hostingEnvironment)
     : base(repositoryContext, configuration, logger, hostingEnvironment)
 {
     this.queryManagerService = queryManagerService;
 }
예제 #10
0
 public SP_new_dettaglio_distinte_storico_dett_immagini_arRepository(RARContext context) :
     base(context)
 {
 }
예제 #11
0
 public New_Dispaccio_In_Apertura(RARContext _context)
 {
     context = _context;
 }
예제 #12
0
 public SP_count_code_racc_from_new_immagini_pmr(RARContext _context)
 {
     context = _context;
 }
예제 #13
0
 public SP_controlla_esiti_scartati(RARContext _context)
 {
     context = _context;
 }
예제 #14
0
 public RepositoryBase(RARContext repositoryContext)
 {
     this.RepositoryContext = repositoryContext;
 }
예제 #15
0
 public SP_temp_storico_cartelle(RARContext _context)
 {
     context = _context;
 }
예제 #16
0
 public New_Cartoline_Dispaccio_In_Del_Tracciatura(RARContext _context)
 {
     context = _context;
 }
예제 #17
0
 public New_Dispaccio_In_Arrivo(RARContext _context)
 {
     context = _context;
 }
예제 #18
0
 public DammiQueryRepository(RARContext context) :
     base(context)
 {
 }
예제 #19
0
 public New_Cartoline_Dispaccio_In_From_Id_Dispaccio(RARContext _context)
 {
     context = _context;
 }
예제 #20
0
 public NewDispaccioInRepository(RARContext context) :
     base(context)
 {
 }
예제 #21
0
 public CaricaQuery(RARContext _context)
 {
     context = _context;
 }
예제 #22
0
 public SP_aggiorna_esa_racc(RARContext _context)
 {
     context = _context;
 }
예제 #23
0
 public CaricaQueryRepository(RARContext context) :
     base(context)
 {
 }
예제 #24
0
 public LookupController(ILookupService lookupService, RARContext repositoryContext, IConfiguration configuration, ILogger <LookupController> logger, IHostingEnvironment hostingEnvironment)
     : base(repositoryContext, configuration, logger, hostingEnvironment)
 {
     _lookupService = lookupService;
 }
예제 #25
0
 public SP_temp_storico_cartelleRepository(RARContext context) :
     base(context)
 {
 }
예제 #26
0
 // Inject dependencies in controller
 public GeneraXls(ILogger logger, RARContext context)
 {
     _context = context;
     _logger  = logger;
 }
예제 #27
0
 public SP_new_dettaglio_distinte_storico_dett_immagini_pmr(RARContext _context)
 {
     context = _context;
 }
예제 #28
0
 public SP_new_dettaglio_elenco_racc_storico_cartelleRepository(RARContext context) :
     base(context)
 {
 }
예제 #29
0
 public SP_new_dettaglio_distinte_storico_cartelleRepository(RARContext context) :
     base(context)
 {
 }
예제 #30
0
 public DispaccioRepository(RARContext context) :
     base(context)
 {
 }