public Either <RfcErrorInfo, Unit> Invoke(IConnectionHandle connectionHandle, IFunctionHandle functionHandle) { Logger.IfSome(l => l.LogTrace("Invoking function", new { connectionHandle, functionHandle })); var rc = NativeApi.Invoke(connectionHandle as ConnectionHandle, functionHandle as FunctionHandle, out var errorInfo); return(ResultOrError(Unit.Default, rc, errorInfo)); }