소스 검색

Merge branch 'GSP' of http://36.129.163.148:10080/gaoshipeng/OTS2_0 into GSP

gsp 3 년 전
부모
커밋
fe64016a54
1개의 변경된 파일5개의 추가작업 그리고 4개의 파일을 삭제
  1. 5 4
      OTSIncAReportApp/3-ServiceCenter/SemController.cs

+ 5 - 4
OTSIncAReportApp/3-ServiceCenter/SemController.cs

@@ -20,16 +20,17 @@ namespace ServiceInterface
         private IpcSEMController remoteObj;
         public SemController()
         {
-            IpcClientChannel channel = new IpcClientChannel();
-            //Register the channel with ChannelServices.
-            ChannelServices.RegisterChannel(channel, false);
+       
          
 
         }
 
         public bool Connect()
         {
-             remoteObj = (IpcSEMController)Activator.GetObject(typeof(IpcSEMController), "ipc://ServerChannel/RemoteObject");
+            IpcClientChannel channel = new IpcClientChannel();
+            //Register the channel with ChannelServices.
+            ChannelServices.RegisterChannel(channel, false);
+            remoteObj = (IpcSEMController)Activator.GetObject(typeof(IpcSEMController), "ipc://ServerChannel/RemoteObject");
    
             if (remoteObj == null)
             {