protected void btnOk_Click(object sender, EventArgs e)
        {
            try
            {
                using (wcf.CacheServiceClient csc = new NetSqlAzManWebConsole.wcf.CacheServiceClient())
                {
                    try
                    {
                        csc.Endpoint.Address = new System.ServiceModel.EndpointAddress(this.TextBox1.Text);
                        csc.Open();
                        csc.InvalidateCache();
                        base.closeWindow(false);
                    }
                    finally
                    {
                        ((IDisposable)csc).Dispose();
                    }

                }
            }
            catch (Exception ex)
            {
                this.ShowError(ex.Message);
            }
        }
Пример #2
0
 protected void Page_Init(object sender, EventArgs e)
 {
     this.setImage("Cache_32x32.gif");
     this.setOkHandler(new EventHandler(this.btnOk_Click));
     this.btnOk.Width    = new Unit("150px");
     this.btnOk.Text     = "InvalidateCache()";
     this.btnCancel.Text = "Close";
     using (wcf.CacheServiceClient csc = new NetSqlAzManWebConsole.wcf.CacheServiceClient())
     {
         try
         {
             this.TextBox1.Text = csc.Endpoint.Address.ToString();
         }
         finally
         {
             ((IDisposable)csc).Dispose();
         }
     }
 }
 protected void Page_Init(object sender, EventArgs e)
 {
     this.setImage("Cache_32x32.gif");
     this.setOkHandler(new EventHandler(this.btnOk_Click));
     this.btnOk.Width = new Unit("150px");
     this.btnOk.Text = "InvalidateCache()";
     this.btnCancel.Text = "Close";
     using (wcf.CacheServiceClient csc = new NetSqlAzManWebConsole.wcf.CacheServiceClient())
     {
         try
         {
             this.TextBox1.Text = csc.Endpoint.Address.ToString();
         }
         finally
         {
             ((IDisposable)csc).Dispose();
         }
     }
 }
Пример #4
0
 protected void btnOk_Click(object sender, EventArgs e)
 {
     try
     {
         using (wcf.CacheServiceClient csc = new NetSqlAzManWebConsole.wcf.CacheServiceClient())
         {
             try
             {
                 csc.Endpoint.Address = new System.ServiceModel.EndpointAddress(this.TextBox1.Text);
                 csc.Open();
                 csc.InvalidateCache();
                 base.closeWindow(false);
             }
             finally
             {
                 ((IDisposable)csc).Dispose();
             }
         }
     }
     catch (Exception ex)
     {
         this.ShowError(ex.Message);
     }
 }