Ejemplo n.º 1
0
 public EventDataManager(IOptions <WebPortalApiConfig> config,
                         ICosmosDBRepository <EventModel> repoEvents)
 {
     _config     = config.Value;
     _repoEvents = repoEvents;
     _dictEvents = new Dictionary <string, EventModel>();
 }
Ejemplo n.º 2
0
 public DeliveryDataManager(IOptions <WebPortalApiConfig> config,
                            ICosmosDBRepository <DeliveryModel> repoDeliveries,
                            ILogger <DeliveryDataManager> logger)
 {
     _logger         = logger;
     _config         = config.Value;
     _repoDeliveries = repoDeliveries;
     _dictDeliveries = new Dictionary <string, IEnumerable <DeliveryModel> >();
 }
Ejemplo n.º 3
0
 public NoteDataManager(IOptions <WebPortalApiConfig> config,
                        ICosmosDBRepository <NoteModel> repoNotes,
                        ICosmosDBRepository <NoteTemplateModel> repoNoteTemplates,
                        ILogger <NoteDataManager> logger)
 {
     _logger            = logger;
     _config            = config.Value;
     _repoNotes         = repoNotes;
     _repoNoteTemplates = repoNoteTemplates;
     _dictEvents        = new Dictionary <string, IEnumerable <NoteModel> >();
     _dictNoteTemplates = new Dictionary <string, IEnumerable <NoteTemplateModel> >();
 }
Ejemplo n.º 4
0
        public RouteDataManager(IOptions <WebPortalApiConfig> config,
                                IOptions <BingApiConfig> bingConfig,
                                ICosmosDBRepository <RouteModel> repoRoutes,
                                ILogger <RouteDataManager> logger)
        {
            _logger     = logger;
            _config     = config.Value;
            _repoRoutes = repoRoutes;
            _dictRoutes = new Dictionary <string, RouteModel>();

            _bingConfig = bingConfig.Value;
            _bingClient = new RestClient(_bingConfig.Url);
        }