public void Dispose() { if (cs != null) { try { cs.Close(); cs = null; } catch { } } }
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); }
public CustomerBillingHelper(EventHandler <LogEventArgs> handler = null) : base(handler) { cs = new CustomerBillingServiceClient("BasicHttpBinding_ICustomerBillingService"); }