Exemple #1
0
        public void Dispose()
        {
            // Remove hooks
            hooker.Dispose();

            // Finalise cleanup of hooks
            LocalHook.Release();

            logger.Debug("Resources has benn released.");
        }
Exemple #2
0
        public void Dispose()
        {
            // Remove hooks
            hooker?.Dispose();

            // Finalise cleanup of hooks
            LocalHook.Release();

            server.OnClosed -= proxy.Close;

            logger.Debug("资源已成功释放.");
        }