/// <summary> /// is Pos Allowed /// </summary> /// <param name="posId">POS id</param> /// <returns></returns> private bool IsPosAllowed(byte posId) { var dateStart = DateTime.Now; Performancelog.Debug($"Start,LoginManager,IsPosAllowed,{string.Empty},{DateTime.Now:hh.mm.ss.ffffff}"); var returnValue = false; var security = _policyManager.LoadSecurityInfo(); if (_utilityService.GetDistinctIpAddress(posId) < security.MaxConcurrentPOS) { returnValue = true; } Performancelog.Debug($"End,LoginManager,IsPosAllowed,{DateTime.Now.Subtract(dateStart).TotalMilliseconds},{DateTime.Now:hh.mm.ss.ffffff}"); return(returnValue); }