Exemplo n.º 1
0
 // When the file at the given path changes,
 // we'll call the supplied action.
 public static void Listen(string virtualPath, Action<string> action)
 {
     var notifier = new ConfigFileChangeNotifier(action);
     notifier.ListenForChanges(virtualPath);
 }
Exemplo n.º 2
0
        // When the file at the given path changes,
        // we'll call the supplied action.
        public static void Listen(string virtualPath, Action <string> action)
        {
            var notifier = new ConfigFileChangeNotifier(action);

            notifier.ListenForChanges(virtualPath);
        }