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