public void Dispose() { // Remove hooks hooker.Dispose(); // Finalise cleanup of hooks LocalHook.Release(); logger.Debug("Resources has benn released."); }
public void Dispose() { // Remove hooks hooker?.Dispose(); // Finalise cleanup of hooks LocalHook.Release(); server.OnClosed -= proxy.Close; logger.Debug("资源已成功释放."); }