How do I get a YesSQL ISession during a Rewrite Rule?
I’m running Orchard Core and have created a custom IRule
that needs to query the Content Items. (Obviously querying the DB is time-consuming, so we only do this if something happened and we need to rebuild our redirects cache.) To do so, I am getting an IOrchardHelper
from the service provider, and using that helper, I’m executing