private void keepItInMemory()
 {
     // wait for host process termination...
     try
     {
         while (true)
         {
             Thread.Sleep(500);
             _interface.Ping();
         }
     }
     catch
     {
         _interface = null;
         // .NET Remoting will raise an exception if host is unreachable
     }
 }
 public GetDateTimeFormatInjection(RemoteHooking.IContext context, string channelName)
 {
     // connect to host...
     _interface = RemoteHooking.IpcConnectClient <MessagesReceiverInterface>(channelName);
     _interface.Ping();
 }