Example #1
0
 public void Dispose()
 {
     if (cs != null)
     {
         try
         {
             cs.Close();
             cs = null;
         }
         catch { }
     }
 }
Example #2
0
 public CustomerBillingServiceClient Check()
 {
     if (cs == null)
     {
         cs = new CustomerBillingServiceClient("BasicHttpBinding_ICustomerBillingService");
     }
     else if (cs.State != CommunicationState.Opened && cs.State != CommunicationState.Opening)
     {
         try
         {
             cs.Open();
         }
         catch (Exception ex)
         {
             Log(new LogEventArgs(ServiceType.Reporting, "Check", ex.Message, null, ex, null, LogLevel.Warn));
         }
     }
     return(cs);
 }
Example #3
0
 public CustomerBillingHelper(EventHandler <LogEventArgs> handler = null)
     : base(handler)
 {
     cs = new CustomerBillingServiceClient("BasicHttpBinding_ICustomerBillingService");
 }