コード例 #1
0
        public List <Pais> TraePaises(bool conConvenio)
        {
            PaisesDatos objdao = new PaisesDatos();

            try
            {
                // Creo un Objeto Windows Identity para enviarle al thread asyncronico
                //(lo necesita para poder impersonar el thread nuevo)
                WindowsIdentity mThreadIdentity = WindowsIdentity.GetCurrent();
                return(objdao.TraePaises(conConvenio));
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                objdao.Dispose();
            }
        }