Exemple #1
0
        public VisitorController(IConstantRepository ConstantParam, IVisitorRepository VisitorParam, IProgramEventRepository ProgramEventParam)
        {
            ConstantRepository     = ConstantParam;
            VisitorRepository      = VisitorParam;
            ProgramEventRepository = ProgramEventParam;

            ViewBag.Supervisor = false;
            int memberID = Convert.ToInt16(System.Web.HttpContext.Current.Session["personID"]);

            if (memberID > 0)
            {
                if (MembershipRepositroy.IsUser(memberID))
                {
                    user user = MembershipRepositroy.GetUserByID(memberID);
                    if ((user.role.Name == "WebMaster") || (user.role.Name == "Pastor") || (user.role.Name == "Admin") || (user.role.Name == "Admin2")) //creator access
                    {
                        ViewBag.Supervisor = true;
                    }
                    if (user.role.Name == "WebMaster") //creator access
                    {
                        ViewBag.WebMaster = true;
                    }

                    if (user.role.Name == "Officer") //creator access
                    {
                        ViewBag.Supervisor2 = true;
                    }
                }
            }
        }
 public BookingService(IBookingRepository repository, IMapper mapper, IAdministratorRepository repositoryAdmin, IVisitorRepository visitorRepository)
 {
     _repository        = repository;
     _mapper            = mapper;
     _repositoryAdmin   = repositoryAdmin;
     _visitorRepository = visitorRepository;
 }
Exemple #3
0
 public VisitorLoginService(IVisitorRepository repository, SigningConfiguration signingConfiguration, TokenConfiguration tokenConfiguration, IConfiguration configuration)
 {
     _repository           = repository;
     _signingConfiguration = signingConfiguration;
     _tokenConfiguration   = tokenConfiguration;
     _configuration        = configuration;
 }
Exemple #4
0
        // http://ip-api.com/json/200.32.1.23.1
        // https://ip-api.com/docs/api:json

        public VisitorService(IOptions <IPServiceAPIProvider> settingsProvider,
                              IHttpClientFactory httpClientFactory,
                              IVisitorRepository visitorRepository)
        {
            // Guard clauses
            if (visitorRepository == null)
            {
                throw new ArgumentNullException(nameof(visitorRepository));
            }
            if (httpClientFactory == null)
            {
                throw new ArgumentNullException(nameof(httpClientFactory));
            }
            if (settingsProvider == null)
            {
                throw new ArgumentNullException(nameof(settingsProvider));
            }
            if (settingsProvider.Value == null)
            {
                throw new ArgumentNullException(nameof(settingsProvider.Value));
            }
            if (string.IsNullOrWhiteSpace(settingsProvider.Value.Host))
            {
                throw new ArgumentException("Cannot be null, empty or white-space", nameof(settingsProvider.Value.Host));
            }

            _baseUrl           = settingsProvider.Value.Host;
            _httpClientFactory = httpClientFactory;
            _visitorRepository = visitorRepository;
        }
Exemple #5
0
        public async Task Invoke(HttpContext context, IVisitorRepository visitorRepository, UserManager <ApplicationUser> _userManager)
        {
            string visitorId = context.Request.Cookies["VisitorId"];

            if (visitorId == null)
            {
                //don the necessary staffs here to save the count by one
                visitorId = Guid.NewGuid().ToString();

                context.Response.Cookies.Append("VisitorId", visitorId, new CookieOptions()
                {
                    Path     = "/",
                    HttpOnly = true,
                    Secure   = false,
                });
            }

            var currentUser = await _userManager.GetUserAsync(context.Request.HttpContext.User);

            await visitorRepository.CreateAsync(new Domain.Visitor {
                VisitorId   = visitorId,
                Cookie      = JsonConvert.SerializeObject(context.Request.Cookies),
                IPAddress   = context.Request.HttpContext.Connection.RemoteIpAddress.MapToIPv4().ToString(),
                Url         = (context.Request.HttpContext.Request.Host.ToString() + context.Request.HttpContext.Request.Path).Replace("//", ""),
                Query       = JsonConvert.SerializeObject(context.Request.HttpContext.Request.Query),
                QueryString = context.Request.HttpContext.Request.QueryString.ToUriComponent(),
                RouteValue  = JsonConvert.SerializeObject(context.Request.HttpContext.Request.RouteValues),
                Username    = currentUser != null ? currentUser.UserName : "******"
            });;

            await _requestDelegate(context);
        }
Exemple #6
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="localizer"></param>
 /// <param name="configuration"></param>
 /// <param name="loggerFactory"></param>
 /// <param name="logger"></param>
 /// <param name="slotRepository"></param>
 /// <param name="placeRepository"></param>
 /// <param name="userRepository"></param>
 /// <param name="visitorRepository"></param>
 /// <param name="placeProviderRepository"></param>
 /// <param name="mojeEZdravie"></param>
 /// <param name="emailSender"></param>
 /// <param name="smsSender"></param>
 public AdminController(
     IStringLocalizer <AdminController> localizer,
     IConfiguration configuration,
     ILoggerFactory loggerFactory,
     ILogger <AdminController> logger,
     ISlotRepository slotRepository,
     IPlaceRepository placeRepository,
     IUserRepository userRepository,
     IVisitorRepository visitorRepository,
     IPlaceProviderRepository placeProviderRepository,
     IMojeEZdravie mojeEZdravie,
     IEmailSender emailSender,
     ISMSSender smsSender
     )
 {
     this.localizer               = localizer;
     this.loggerFactory           = loggerFactory;
     this.logger                  = logger;
     this.slotRepository          = slotRepository;
     this.placeRepository         = placeRepository;
     this.userRepository          = userRepository;
     this.configuration           = configuration;
     this.visitorRepository       = visitorRepository;
     this.placeProviderRepository = placeProviderRepository;
     this.mojeEZdravie            = mojeEZdravie;
     this.emailSender             = emailSender;
     this.smsSender               = smsSender;
 }
Exemple #7
0
        public IVisitorRepository BuildRepository()
        {
            //Uses the Func<IVisitorRepository> to build the instance
            IVisitorRepository repository =
                RepositoryBuilder();

            return(repository);
        }
Exemple #8
0
 public PermitService(IPermitRepository permitRepository,
                      IVehicleRepository vehicleRepository,
                      IVisitorRepository visitorRepository)
 {
     _permitRepository  = permitRepository;
     _visitorRepository = visitorRepository;
     _vehicleRepository = vehicleRepository;
 }
 public ShortUrlStatsService(ILogger <ShortUrlStatsService> loggerService, IMapper mapper,
                             IStatRepository statRepository, IVisitorRepository visitorRepository)
 {
     _loggerService     = loggerService;
     _mapper            = mapper;
     _statRepository    = statRepository;
     _visitorRepository = visitorRepository;
 }
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="visitorRepository">IVisitorRepository dependency</param>
        public VisitorsController(IVisitorRepository visitorRepository)
        {
            if (visitorRepository == null)
            {
                throw new ArgumentNullException("visitorRepository");
            }

            _visitorRepository = visitorRepository;
        }
Exemple #11
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="logger"></param>
 /// <param name="configuration"></param>
 /// <param name="visitorRepository"></param>
 public DeleteOldVisitors(
     ILogger <ExportTask> logger,
     IConfiguration configuration,
     IVisitorRepository visitorRepository
     )
 {
     this.logger            = logger;
     this.configuration     = configuration;
     this.visitorRepository = visitorRepository;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PersonAlertData"/> class.
 /// </summary>
 /// <param name="applicationSettings">The application settings.</param>
 /// <param name="alertRepository">The alert repository.</param>
 /// <param name="shipRepository">The ship repository.</param>
 /// <param name="guestRepository">The guest repository.</param>
 /// <param name="shipTimeRepository">The ship time repository.</param>
 /// <param name="crewRepository">The crew repository.</param>
 /// <param name="visitorRepository">The visitor repository.</param>
 public PersonAlertData(IApplicationSettings applicationSettings, IAlertRepository alertRepository, IShipRepository shipRepository, IGuestRepository guestRepository, IShipTimeRepository shipTimeRepository, ICrewRepository crewRepository, IVisitorRepository visitorRepository)
 {
     this.applicationSettings = applicationSettings;
     this.alertClientRepository = alertRepository;
     this.shipRepository = shipRepository;
     this.guestRepository = guestRepository;
     this.shipTimeRepository = shipTimeRepository;
     this.crewClientRepository = crewRepository;
     this.visitorClientRepository = visitorRepository;
 }
Exemple #13
0
 public ArticleService(ApplicationContextActivityDecorator traceActivityDecorator, IArticleRepository articleRepository, ITagRepository tagRepository, TagService tagService, IVisitorRepository visitorRepository, IMapper mapper, ApplicationCache cache)
 {
     this.traceActivityDecorator = traceActivityDecorator;
     this.articleRepository      = articleRepository;
     this.tagRepository          = tagRepository;
     this.tagService             = tagService;
     this.visitorRepository      = visitorRepository;
     this.mapper = mapper;
     this.cache  = cache;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MasterDataRepository" /> class.
 /// </summary>
 /// <param name="referenceRepository">The reference repository.</param>
 /// <param name="crewRepository">The crew repository.</param>
 /// <param name="shipTimeRepository">The ship time repository.</param>
 /// <param name="shipRepository">The ship repository.</param>
 /// <param name="voyageRepository">The voyage repository.</param>
 /// <param name="visitorRepository">The visitor repository.</param>
 /// <param name="applicationSettings">The application settings.</param>
 /// <param name="alertRepository">The alert repository.</param>
 public MasterDataRepository(IReferenceDataRepository referenceRepository, ICrewRepository crewRepository, IShipTimeRepository shipTimeRepository, IShipRepository shipRepository, IVoyageRepository voyageRepository, IVisitorRepository visitorRepository, IApplicationSettings applicationSettings, IAlertRepository alertRepository)
 {
     this.crewRepository = crewRepository;
     this.referenceDataRepository = referenceRepository;
     this.shipTimeRepository = shipTimeRepository;
     this.shipRepository = shipRepository;
     this.voyageRepository = voyageRepository;
     this.visitorRepository = visitorRepository;
     this.applicationSettings = applicationSettings;
     this.alertRepository = alertRepository;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="VisitorRepositoryTests" /> class.
        /// </summary>
        public VisitorRepositoryTests()
        {
            this.httpClientHelper = new Mock<IHttpClientHelper>();

            Business.Dependencies.Register();
            DIContainer.Instance.RegisterInstance<IHttpClientHelper>(this.httpClientHelper.Object);
            DIContainer.Instance.RegisterType<IImageMediaClient, ImageMediaClient>();
            DIContainer.Instance.RegisterType<IComponentSettingsClient, ComponentSettingsClient>();
            this.visitorRepository = DIContainer.Instance.Resolve<IVisitorRepository>();
            this.visitorList = SetUpVisitorData();
        }
 public HostModel(IConfiguration configuration, ITenantManager tenantManager, ILocalizationManager localizationManager, ILanguageRepository languages, IAntiforgery antiforgery, ISiteRepository sites, IPageRepository pages, IUrlMappingRepository urlMappings, IVisitorRepository visitors)
 {
     _configuration       = configuration;
     _tenantManager       = tenantManager;
     _localizationManager = localizationManager;
     _languages           = languages;
     _antiforgery         = antiforgery;
     _sites       = sites;
     _pages       = pages;
     _urlMappings = urlMappings;
     _visitors    = visitors;
 }
Exemple #17
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="logger"></param>
 /// <param name="configuration"></param>
 /// <param name="options"></param>
 /// <param name="visitorRepository"></param>
 /// <param name="emailSender"></param>
 public ExportTask(
     ILogger <ExportTask> logger,
     IConfiguration configuration,
     IOptions <Model.Settings.ExportTaskConfiguration> options,
     IVisitorRepository visitorRepository,
     IEmailSender emailSender
     )
 {
     this.logger            = logger;
     this.configuration     = configuration;
     this.settings          = options;
     this.visitorRepository = visitorRepository;
     this.emailSender       = emailSender;
 }
        public WebimModel()
        {
            historyRepository = new HistoryRepository();

            settingRepository = new SettingRepository();

            roomRepository = new RoomRepository();

            memberRepository = new MemberRepository();

            blockRepository = new BlockedRepository();

            visitorRepository = new VisitorRepository();
        }
Exemple #19
0
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="logger"></param>
 /// <param name="visitorRepository"></param>
 /// <param name="userRepository"></param>
 /// <param name="placeProviderRepository"></param>
 /// <param name="configuration"></param>
 /// <param name="captchaValidator"></param>
 public VisitorController(
     ILogger <VisitorController> logger,
     IVisitorRepository visitorRepository,
     IUserRepository userRepository,
     IPlaceProviderRepository placeProviderRepository,
     IConfiguration configuration,
     GoogleReCaptcha.V3.Interface.ICaptchaValidator captchaValidator
     )
 {
     this.logger                  = logger;
     this.visitorRepository       = visitorRepository;
     this.configuration           = configuration;
     this.captchaValidator        = captchaValidator;
     this.userRepository          = userRepository;
     this.placeProviderRepository = placeProviderRepository;
 }
Exemple #20
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="localizer"></param>
 /// <param name="logger"></param>
 /// <param name="userRepository"></param>
 /// <param name="placeProviderRepository"></param>
 /// <param name="visitorRepository"></param>
 /// <param name="placeRepository"></param>
 public UserController(
     IStringLocalizer <UserController> localizer,
     ILogger <PlaceController> logger,
     IUserRepository userRepository,
     IPlaceProviderRepository placeProviderRepository,
     IVisitorRepository visitorRepository,
     IPlaceRepository placeRepository
     )
 {
     this.localizer               = localizer;
     this.logger                  = logger;
     this.userRepository          = userRepository;
     this.placeProviderRepository = placeProviderRepository;
     this.placeRepository         = placeRepository;
     this.visitorRepository       = visitorRepository;
 }
Exemple #21
0
 public HomeController(IConstantRepository ConstantParam, IMinistryRepository MinistryParam, ICalendarRepository CalendarParam, IMeetingRepository MeetingParam,
                       IAnnouncementRepository AnnouncementParam, IStoryRepository StoryParam, IPictureRepository PictureParam, IListtableRepository ListTableParam,
                       IDocumentRepository DocumentParam, IVideoRepository VideoParam, IVisitorRepository VisitorParam)
 {
     ConstantRepository     = ConstantParam;
     MinistryRepository     = MinistryParam;
     CalendarRepository     = CalendarParam;
     MeetingRepository      = MeetingParam;
     AnnouncementRepository = AnnouncementParam;
     StoryRepository        = StoryParam;
     PictureRepository      = PictureParam;
     ListTableRepository    = ListTableParam;
     DocumentRepository     = DocumentParam;
     VideoRepository        = VideoParam;
     VisitorRepository      = VisitorParam;
 }
Exemple #22
0
        public EmailController(IConstantRepository ConstantParam, IMemberRepository MemberParam, IMinistryMemberRepository MinistryMemberParam, IMinistryRepository MinistryParam,
                               IVisitorRepository VisitorParam, IChildParentRepository ChildParentParam)
        {
            ConstantRepository       = ConstantParam;
            MemberRepository         = MemberParam;
            MinistryMemberRepository = MinistryMemberParam;
            MinistryRepository       = MinistryParam;
            VisitorRepository        = VisitorParam;
            ChildParentRepository    = ChildParentParam;

            ChurchName = ConstantRepository.GetConstantByName("Church Name").Value1;
            ChurchURL  = ConstantRepository.GetConstantByName("Church URL").Value1;
            if (ChurchURL.Substring(0, 4) != "www.")
            {
                ChurchURL = string.Format("www.{0}", ChurchURL);
            }
        }
Exemple #23
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="configuration"></param>
 /// <param name="localizer"></param>
 /// <param name="logger"></param>
 /// <param name="placeProviderRepository"></param>
 /// <param name="placeRepository"></param>
 /// <param name="userRepository"></param>
 /// <param name="visitorRepository"></param>
 public PlaceProviderController(
     IConfiguration configuration,
     IStringLocalizer <PlaceProviderController> localizer,
     ILogger <PlaceProviderController> logger,
     IPlaceProviderRepository placeProviderRepository,
     IPlaceRepository placeRepository,
     IUserRepository userRepository,
     IVisitorRepository visitorRepository
     )
 {
     this.configuration           = configuration;
     this.localizer               = localizer;
     this.logger                  = logger;
     this.placeRepository         = placeRepository;
     this.userRepository          = userRepository;
     this.placeProviderRepository = placeProviderRepository;
     this.visitorRepository       = visitorRepository;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="configuration"></param>
 /// <param name="localizer"></param>
 /// <param name="logger"></param>
 /// <param name="visitorRepository"></param>
 /// <param name="userRepository"></param>
 /// <param name="placeProviderRepository"></param>
 /// <param name="captchaValidator"></param>
 public ResultController(
     IConfiguration configuration,
     IStringLocalizer <ResultController> localizer,
     ILogger <ResultController> logger,
     IVisitorRepository visitorRepository,
     IUserRepository userRepository,
     IPlaceProviderRepository placeProviderRepository,
     ICaptchaValidator captchaValidator
     )
 {
     this.configuration           = configuration;
     this.localizer               = localizer;
     this.logger                  = logger;
     this.visitorRepository       = visitorRepository;
     this.userRepository          = userRepository;
     this.placeProviderRepository = placeProviderRepository;
     this.captchaValidator        = captchaValidator;
 }
Exemple #25
0
 public License(
     IClassificatorRepository classificatorRepository,
     IClassificatorValueRepository classificatorValueRepository,
     IClassificatorService classificatorService,
     IVisitorService visitorService,
     IUserRepository userRepository,
     IUserTimeZoneRepository userTimeZoneRepository,
     ICurrentUser currentUser,
     IBuildingRepository buildingRepository,
     IBuildingObjectRepository buildingObjectRepository,
     IVisitorRepository visitorRepository,
     ILogger logger)
     : base(currentUser, logger)
 {
     _classificatorRepository      = classificatorRepository;
     _classificatorValueRepository = classificatorValueRepository;
     _classificatorService         = classificatorService;
     _userTimeZoneRepository       = userTimeZoneRepository;
     _userRepository           = userRepository;
     _visitorService           = visitorService;
     _buildingObjectRepository = buildingObjectRepository;
     _buildingRepository       = buildingRepository;
     _visitorRepository        = visitorRepository;
 }
 public VisitorService(ICurrentUser currentUser,
                       IDomainObjectFactory domainObjectFactory,
                       IEventAggregator eventAggregator,
                       IUserRepository userRepository,
                       IVisitorRepository visitorRepository,
                       IClassificatorValueRepository classificatorValueRepository,
                       IControllerUpdateService controllerUpdateService,
                       IUsersAccessUnitRepository usersAccessUnitRepository,
                       ILogService logService,
                       IUserRepository usersRepository,
                       ILogRepository logRepository,
                       ICompanyRepository companyRepository) : base(currentUser, domainObjectFactory, eventAggregator)
 {
     _visitorRepository         = visitorRepository;
     _usersAccessUnitRepository = usersAccessUnitRepository;
     _logService     = logService;
     _logservice1    = logService;
     _userRepository = userRepository;
     _classificatorValueRepository = classificatorValueRepository;
     _controllerUpdateService      = controllerUpdateService;
     _companyRepository            = companyRepository;
     _logRepository   = logRepository;
     _usersRepository = usersRepository;
 }
Exemple #27
0
 public VisitorsController(IVisitorRepository repository)
 {
     db = repository;
 }
Exemple #28
0
 public VisitorCollection(IVisitorRepository visitorRepository) : base(visitorRepository)
 {
 }
 public VisitorRetrievalFilter(IVisitorRepository repository)
 {
     _repository = repository;
 }
Exemple #30
0
        /// <summary>
        /// Downloads the visitors from eHealth
        /// </summary>
        /// <param name="placeProviderId"></param>
        /// <param name="managerEmail"></param>
        /// <param name="day"></param>
        /// <param name="visitorRepository"></param>
        /// <param name="placeRepository"></param>
        /// <param name="placeProviderRepository"></param>
        /// <param name="slotRepository"></param>
        /// <param name="loggerFactory"></param>
        /// <returns></returns>
        public async Task <int> DownloadEHealthVisitors(
            string placeProviderId,
            string managerEmail,
            DateTimeOffset day,
            IVisitorRepository visitorRepository,
            IPlaceRepository placeRepository,
            IPlaceProviderRepository placeProviderRepository,
            ISlotRepository slotRepository,
            ILoggerFactory loggerFactory
            )
        {
            var logger = loggerFactory.CreateLogger <MojeEZdravieAbstract>();

            logger.LogInformation($"eHealth: Downloading {placeProviderId} {managerEmail} {day}");
            var rPlaces = (await placeRepository.ListAll())?.Where(p => p.PlaceProviderId == placeProviderId);

            if (rPlaces == null || !rPlaces.Any())
            {
                throw new Exception("This place provider does not have any place defined");
            }
            var pp = await placeProviderRepository.GetPlaceProvider(placeProviderId);

            var product = pp.Products.FirstOrDefault(pr => pr.EHealthDefault == true);

            if (product == null)
            {
                product = pp.Products.FirstOrDefault();
            }

            int ret  = 0;
            var data = await MakeSurePlaceProviderIsAuthenticated(placeProviderId, placeProviderRepository);

            var token  = data.LoginPayload.Session.Token;
            var places = await DriveInQueue(token, day);

            if (places.Payload == null)
            {
                throw new Exception("No places found");
            }

            foreach (var place in places.Payload)
            {
                var rPlace = rPlaces.FirstOrDefault(p => p.EHealthId == place.Id);
                if (rPlace == null)
                {
                    rPlace = rPlaces.FirstOrDefault();
                }

                var list = await PlaceDetail(token, day, place.Id);

                foreach (var person in list.Payload)
                {
                    if (!person.DesignatedDriveinScheduledAt.HasValue)
                    {
                        continue;
                    }
                    if (string.IsNullOrEmpty(person.BirthNumber?.FormatDocument()))
                    {
                        continue;
                    }
                    var slot = await slotRepository.GetCurrentSlot(rPlace.Id, person.DesignatedDriveinScheduledAt.Value);

                    var documentClear = person.BirthNumber.FormatDocument();
                    var existing      = await visitorRepository.GetVisitorByPersonalNumber(documentClear, true);

                    if (existing != null && existing.ChosenPlaceId == rPlace.Id && existing.ChosenSlot == slot.SlotId)
                    {
                        continue; // already exists
                    }

                    var visitor = new Visitor()
                    {
                        ChosenSlot           = slot.SlotId,
                        ChosenPlaceId        = rPlace.Id,
                        Product              = product.Id,
                        FirstName            = person.FirstName,
                        LastName             = person.LastName,
                        RC                   = person.BirthNumber,
                        Insurance            = person.HealthInsuranceCompany,
                        PersonTrackingNumber = person.PersonTrackingNumber,
                        Gender               = person.Gender,
                        Street               = person.Street,
                        StreetNo             = person.StreetNumber,
                        City                 = person.City,
                        ZIP                  = person.PostalCode,
                        Phone                = person.PrimaryPhone,
                        Language             = "sk",
                        Result               = TestResult.NotTaken,
                        DownloadedAt         = DateTimeOffset.UtcNow
                    };
                    var newRegistration = await visitorRepository.Register(visitor, managerEmail, false);

                    logger.LogInformation($"eHealth: Visitor downloaded {visitor.Id} {visitor.RC.GetSHA256Hash()}");
                    ret++;
                }
            }
            return(ret);
        }
Exemple #31
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AlertData" /> class.
 /// </summary>
 /// <param name="alertRepository">The alert repository.</param>
 /// <param name="visitorRepository">The visitor repository.</param>
 /// <param name="guestRepository">The guest repository.</param>
 /// <param name="crewRepository">The crew repository.</param>
 /// <param name="shipRepository">The ship repository.</param>
 /// <param name="shipTimeRepository">The ship time repository.</param>
 /// <param name="applicationSettings">The application settings.</param>
 /// <param name="embarkationStatisticsRepository">The embarkation statistics repository.</param>
 public AlertData(IAlertRepository alertRepository, IVisitorRepository visitorRepository, IGuestRepository guestRepository, ICrewRepository crewRepository, IShipRepository shipRepository, IShipTimeRepository shipTimeRepository, IApplicationSettings applicationSettings, IEmbarkationStatisticsRepository embarkationStatisticsRepository)
 {
     this.alertRepository = alertRepository;
     this.visitorRepository = visitorRepository;
     this.guestRepository = guestRepository;
     this.crewRepository = crewRepository;
     this.shipRepository = shipRepository;
     this.applicationSettings = applicationSettings;
     this.shipTimeRepository = shipTimeRepository;
     this.embarkationStatisticsRepository = embarkationStatisticsRepository;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="UploadUrlData"/> class.
 /// </summary>
 /// <param name="visitorRepository">The visitor repository.</param>
 public UploadUrlData(IVisitorRepository visitorRepository)
 {
     this.visitorRepository = visitorRepository;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="VisitorManager"/> class.
 /// </summary>
 /// <param name="repository">The repository.</param>
 public VisitorManager(IVisitorRepository repository)
 {
     this.visitorRepository = repository;
 }
 public HomeController(IVisitorRepository repository)
 {
     _repository = repository;
 }
 public VisitorRetrievalFilter(IVisitorRepository repository)
 {
     _repository = repository;
 }
Exemple #36
0
 public VisitorController(IVisitorRepository visitorRepository, IUserRepository userRepository)
 {
     this.visitorRepository = visitorRepository;
     this.userRepository    = userRepository;
 }
Exemple #37
0
 public VisitorController(IVisitorRepository visitors, ILogManager logger, ITenantManager tenantManager)
 {
     _visitors = visitors;
     _logger   = logger;
     _alias    = tenantManager.GetAlias();
 }
Exemple #38
0
 public VisitorManager(IVisitorRepository visitorRepository, ILogger logger, IMapper mapper)
 {
     _visitorRepository = visitorRepository;
     _logger            = logger;
     _mapper            = mapper;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="VisitorData" /> class.
 /// </summary>
 /// <param name="visitorRepository">The visitor repository.</param>
 /// <param name="personStatusRepository">The person status repository.</param>
 /// <param name="applicationSettings">The application settings.</param>
 public VisitorData(IVisitorRepository visitorRepository, IPersonStatusRepository personStatusRepository, IApplicationSettings applicationSettings)
 {
     this.visitorRepository = visitorRepository;
     this.personStatusRepository = personStatusRepository;
     this.applicationSettings = applicationSettings;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="configuration"></param>
 /// <param name="visitorRepository"></param>
 public VersionController(IConfiguration configuration, IVisitorRepository visitorRepository)
 {
     this.configuration     = configuration ?? throw new ArgumentNullException(nameof(configuration));
     this.visitorRepository = visitorRepository ?? throw new ArgumentNullException(nameof(visitorRepository));
 }
 public VisitorAdditionFilter(IVisitorRepository repository)
 {
     _repository = repository;
 }