예제 #1
0
 public static bool Recover(string URL)
 {
     try {
         IDataServer dataServer = (IDataServer)Activator.GetObject(typeof(IDataServer), URL);
         dataServer.Freeze();
         return(true);
     } catch (RemotingException e) { //TODO: Improve the catch
         String text = "[Recover] " + e;
         Console.WriteLine(text);
         //textBox.Invoke(new ClearTextDel(textBox.Clear));
         //textBox.Invoke(new UpdateTextDel(textBox.AppendText), new object[] { text });
         return(false);
     }
 }
예제 #2
0
        public object execute(IDataServer data, string command)
        {
            if (data != null)
            {
                data.Freeze();
            }

            return null;
        }