You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since ILogManager.Start() is now deprecated, one must use ILogManager.ExecuteSection() to wrap code into log sections. However, if your code is async, this won't really work. Sync-over-async is a big no-no, and ExecuteSection<TResult>() will end the section before the async operation completes (since it doesn't know about async).
So, please add an async ILogManager.ExecuteSectionAsync() that accepts and async function, i.e. Func<Task> and an overload with Func<Task<TResult>>.
The text was updated successfully, but these errors were encountered:
Only this and #835 are what I've found for now. Since this is a blocker, I can't continue to see if there are any other issues. But if you publish a prerelease, I'd be happy to test it.
Since
ILogManager.Start()
is now deprecated, one must useILogManager.ExecuteSection()
to wrap code into log sections. However, if your code is async, this won't really work. Sync-over-async is a big no-no, andExecuteSection<TResult>()
will end the section before the async operation completes (since it doesn't know about async).So, please add an async
ILogManager.ExecuteSectionAsync()
that accepts and asyncfunction
, i.e.Func<Task>
and an overload withFunc<Task<TResult>>
.The text was updated successfully, but these errors were encountered: