public override void CancelOperation(short kind) { var localStatusVector = new IntPtr[IscCodes.ISC_STATUS_LENGTH]; _fbClient.fb_cancel_operation(localStatusVector, ref _handle, (ushort)kind); try { ProcessStatusVector(localStatusVector); } catch (IscException ex) when(ex.ErrorCode == IscCodes.isc_nothing_to_cancel) { } }
public void CancelOperation(int kind) { IntPtr[] localStatusVector = new IntPtr[IscCodes.ISC_STATUS_LENGTH]; _fbClient.fb_cancel_operation(localStatusVector, ref _handle, kind); ProcessStatusVector(localStatusVector); }
public void CancelOperation(int kind) { int dbHandle = Handle; IntPtr[] localStatusVector = new IntPtr[IscCodes.ISC_STATUS_LENGTH]; _fbClient.fb_cancel_operation(localStatusVector, ref dbHandle, kind); FesConnection.ParseStatusVector(localStatusVector, _charset); }
public override Task CancelOperation(int kind, AsyncWrappingCommonArgs async) { var localStatusVector = new IntPtr[IscCodes.ISC_STATUS_LENGTH]; _fbClient.fb_cancel_operation(localStatusVector, ref _handle, kind); ProcessStatusVector(localStatusVector); return(Task.CompletedTask); }
public override Task CancelOperation(int kind, AsyncWrappingCommonArgs async) { var localStatusVector = new IntPtr[IscCodes.ISC_STATUS_LENGTH]; _fbClient.fb_cancel_operation(localStatusVector, ref _handle, kind); try { ProcessStatusVector(localStatusVector); } catch (IscException ex) when(ex.ErrorCode == IscCodes.isc_nothing_to_cancel) { } return(Task.CompletedTask); }