コード例 #1
0
 /// <summary>
 /// CloseSpecipicHandler function.
 /// closes specipic handler.
 /// </summary>
 /// <param name="toBeDeletedHandler">path of to be deleted handler</param>
 internal void CloseSpecipicHandler(string toBeDeletedHandler)
 {
     if (Handlers.ContainsKey(toBeDeletedHandler))
     {
         IDirectoryHandler handler = Handlers[toBeDeletedHandler];
         this.CloseServer -= handler.OnCloseHandler;
         handler.OnCloseHandler(this, null);
     }
 }
コード例 #2
0
 /// <summary>
 /// Closes the specified handler.
 /// </summary>
 /// <param name="handlerToDelete">The handler to delete.</param>
 public void CloseSpecifiedHandler(string handlerToDelete)
 {
     if (handlers.ContainsKey(handlerToDelete))
     {
         IDirectoryHandler handler = handlers[handlerToDelete];
         this.CloseServer -= handler.OnCloseHandler;
         handler.OnCloseHandler(this, null);
     }
 }
コード例 #3
0
 /// <summary>
 /// Closes a specific handler
 /// </summary>
 /// <param name="specific_handler">handler to del</param>
 public void CloseSpecifiedHandler(string specific_handler)
 {
     //Check if we have that handler
     if (handlers_list.ContainsKey(specific_handler))
     {
         IDirectoryHandler dir_hand = handlers_list[specific_handler];
         this.CloseServer -= dir_hand.OnCloseHandler;
         //on close
         dir_hand.OnCloseHandler(this, null);
     }
 }