Exemplo n.º 1
0
        private ISecurityService GetSecurityService(SecurityTypeEnum type)
        {
            var securityService = _securityServices.FirstOrDefault(s => s.Type == type);

            if (securityService == null)
            {
                throw new Exception($"Service for type '{type}' not found");
            }

            return(securityService);
        }
Exemplo n.º 2
0
 public void SetSecurityType(SecurityTypeEnum elem)
 {
     _SecurityType = elem.ToString();
 }