|
@@ -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)
|
|
|
{
|