private void HangUpIfNecessary(RasDialContext context) { if (context.Handle == IntPtr.Zero) { return; } hangUpService.UnsafeHangUp(context.Handle, false, CancellationToken.None); }
private void HangUpIfNecessary(IntPtr handle) { if (handle == IntPtr.Zero) { return; } hangUpService.UnsafeHangUp(handle, false); }
private void HangUpConnection() { rasHangUp.UnsafeHangUp(handle.Value, false, CancellationToken.None); }
private void HangUpConnection() { WaitForHandleToBeTransferred(); rasHangUp.UnsafeHangUp(handle.Value, false); }