예제 #1
0
 new public void Dispose()
 {
     if (proxy != null)
     {
         if (proxy.State != System.ServiceModel.CommunicationState.Closed)
         {
             proxy.Close();
         }
     }
 }
        new public void Dispose()
        {
            if (proxy != null)
            {
                if (proxy.State != System.ServiceModel.CommunicationState.Closed)
                {
                    proxy.Close();
                }
            }

            proxyConexion = new SoftvService.ConexionClient();
            if (proxyConexion != null)
            {
                if (proxyConexion.State != System.ServiceModel.CommunicationState.Closed)
                {
                    proxyConexion.Close();
                }
            }
        }
        new public void Dispose()
        {
            if (proxy != null)
            {
                if (proxy.State != System.ServiceModel.CommunicationState.Closed)
                {
                    proxy.Close();
                }
            }

            proxyUsuario = new SoftvService.UsuarioClient();
            if (proxyUsuario != null)
            {
                if (proxyUsuario.State != System.ServiceModel.CommunicationState.Closed)
                {
                    proxyUsuario.Close();
                }
            }

            proxyTurnos = new SoftvService.TurnoClient();
            if (proxyTurnos != null)
            {
                if (proxyTurnos.State != System.ServiceModel.CommunicationState.Closed)
                {
                    proxyTurnos.Close();
                }
            }

            proxyConexion = new SoftvService.ConexionClient();
            if (proxyConexion != null)
            {
                if (proxyConexion.State != System.ServiceModel.CommunicationState.Closed)
                {
                    proxyConexion.Close();
                }
            }

            proxyTrabajo = new SoftvService.TrabajoClient();
            if (proxyTrabajo != null)
            {
                if (proxyTrabajo.State != System.ServiceModel.CommunicationState.Closed)
                {
                    proxyTrabajo.Close();
                }
            }

            proxyTipServ = new SoftvService.TipServClient();
            if (proxyTipServ != null)
            {
                if (proxyTipServ.State != System.ServiceModel.CommunicationState.Closed)
                {
                    proxyTipServ.Close();
                }
            }

            proxyCLIENTE = new SoftvService.CLIENTEClient();
            if (proxyCLIENTE != null)
            {
                if (proxyCLIENTE.State != System.ServiceModel.CommunicationState.Closed)
                {
                    proxyCLIENTE.Close();
                }
            }

            proxyQueja = new SoftvService.QuejaClient();
            if (proxyQueja != null)
            {
                if (proxyQueja.State != System.ServiceModel.CommunicationState.Closed)
                {
                    proxyQueja.Close();
                }
            }
        }