Exemplo n.º 1
0
        /// <summary>
        /// Level Info (informativo) a grabar en el log
        /// </summary>
        public static void Inicio(CREDENCIALES objCredenciales)
        {
            _usuario = objCredenciales.USUARIO;
            _ip      = objCredenciales.IP;
            MethodBase methodo      = new StackTrace().GetFrame(1).GetMethod();
            ILog       Logger       = LogManager.GetLogger(methodo.Module.Name);
            string     nombreMetodo = methodo.Name;
            string     nombreClase  = methodo.DeclaringType.Name;

            Logger.Info(nombreClase + "/" + nombreMetodo + "/" + _usuario + "/" + _ip + "/" + "Inicio con Credenciales");
        }
Exemplo n.º 2
0
 public static bool Validate(CREDENCIALES objCredenciales)
 {
     if (objCredenciales == null)
     {
         throw new Exception(NullCredentials);
     }
     else
     {
         return(true);
     }
 }