I have finally started doing this upgrade.
I think everything is done except I'd like to have my Transaction attributes managed as a global filter.
When I try this I get the error:
if (TransactionManager == null)
throw new InvalidOperationException(
"TransactionManager was null, make sure implementation of TransactionManager is registered in the IoC container.");
If I'm using the attribute to decorate a controller then no such problem. Is it possible to use TransactionAttribute as a global filter?
(Would I need a filterprovider?_
It's probably a bit late for comments as per your original request, but I had to change my repo code so that they were configured as PerWebRequest rather than Singleton, or they didn't get new ISession objects per request. It's obvious in hindsight but took me a while to figure it out.
Thanks in advance for any help,
Henry
On Thursday, October 19, 2017 at 6:04:04 PM UTC+1, Henry Senior wrote:
thank you for this!