예제 #1
0
        public static void Main()
        {
            UrlChecker checker = new UrlChecker("http://localhost:3000/form", "B:/Test.txt");

            checker.Attach(new UrlObserver("localhostObserver"));
            checker.State = "New";
            CareTaker careTaker = new CareTaker();

            careTaker.Memento = checker.CreateMemento();
            checker.Start();


            Console.ReadKey();
        }
예제 #2
0
 public void Update(UrlChecker checker)
 {
     Console.WriteLine(Name + " : " + checker.UrlName + " has been modified");
 }