/// <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); } }
/// <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); } }
/// <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); } }