コード例 #1
0
        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();
        }
コード例 #2
0
        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();
        }