Exemplo n.º 1
0
        public Crm(Comun comun)
        {
            Comun = comun;

            //Conexion a CRM
            CrmServiceClient conn = new CrmServiceClient(Comun.ConnStringCrm);

            IOS = (IOrganizationService)conn.OrganizationWebProxyClient != null ? (IOrganizationService)conn.OrganizationWebProxyClient : (IOrganizationService)conn.OrganizationServiceProxy;
        }
Exemplo n.º 2
0
 public void Iniciar(Oracle ora, Comun com, Crm crm)
 {
     try
     {
         OracleGlobal = ora;
         ComunGlobal  = com;
         CrmGlobal    = crm;
     }
     catch (Exception e)
     {
         ComunGlobal.LogText("ERROR en Lanzador de PUBLICACIONES ::: " + e.ToString());
         if (OracleGlobal != null && OracleGlobal.OraConnParaLog.State == ConnectionState.Open)
         {
             OracleGlobal.OraConnParaLog.Dispose();
         }
     }
 }