Exemple #1
0
 /// <summary>
 /// CloseHandler.
 /// get a path to a directory and stop handle with it.
 /// </summary>
 /// <param name="handlerPath"></param>
 public void CloseHandler(string handlerPath)
 {
     //check if this handlerPath is in the handlers list.
     if (this.handlers.ContainsKey(handlerPath))
     {
         IDirectoryHandler handler = handlers[handlerPath];
         handler.EndHandle();
         string[] args = new string[1];
         args[0] = handlerPath;
         //notify all the clients about the closed handler.
         CommandRecievedEventArgs close = new CommandRecievedEventArgs((int)CommandEnum.CloseCommand, args, "");
         NotifyChangeToAllClients(close);
     }
 }