Пример #1
0
 public PhysicalAccessUtility(IEnumerable <Badge> inlab, string kioskIp, IKioskRepository repo)
     : this(inlab, Kiosks.Create(repo).IsOnKiosk(kioskIp))
 {
 }
Пример #2
0
        /// <summary>
        /// Checks if the kiosk ip begins with the ResourceIPPrefix (e.g. 192.168.1), or is a defined kiosk IP, or if Request.IsLocal is true. Does not check if user is in the lab.
        /// </summary>
        public bool IsKiosk()
        {
            bool result = Kiosks.Create(Provider.Scheduler.Kiosk).IsKiosk(Context.CurrentIP()) || Context.Request.IsLocal;

            return(result);
        }
Пример #3
0
 public static bool IsKiosk(IKioskRepository repo, string userHostAddress)
 {
     return(Kiosks.Create(repo).IsKiosk(userHostAddress));
 }