Beispiel #1
0
        public void Apply()
        {
            if (!IsValid)
            {
                throw new InvalidOperationException("This hook has been undone.");
            }

            _Detour.Apply();
        }
Beispiel #2
0
        public void Apply()
        {
            if (!IsValid)
            {
                throw new ObjectDisposedException(nameof(Hook));
            }

            if (!IsApplied && !(OnDetour?.InvokeWhileTrue(this, Method, Target, DelegateTarget) ?? true))
            {
                return;
            }

            _Detour.Apply();
        }
Beispiel #3
0
 public void Apply()
 {
     _Detour.Apply();
 }