public void SetService() { this.SerClient = new WMSProcessClient(); if (this.SerClient.State == CommunicationState.Faulted) this.SerClient.Abort(); if (this.SerClient.State != CommunicationState.Opened) this.SerClient.Open(); }
public WMSServiceClient() { //if (this.SerClient == null) this.SerClient = new WMSProcessClient(); //if (this.SerClient.State == CommunicationState.Faulted) // this.SerClient.Abort(); //if (this.SerClient.State != CommunicationState.Opened) // this.SerClient.Open(); }