Auto Query A bit Easier
Posted: Mon Nov 28, 2022 1:45 pm
In the past in adding auto queries I have created a service to run the auto queries today I have discovered an easier way in the configure method of your plugin as well as having the add route code add the following two lines and service stack will scan the plugin for auto query classes, make sure you plugin has a higher execution order than the REST API plugin though.
- Code: Select all
var dll = GetType().Assembly;
AppHost.GetPlugin<AutoQueryFeature>().LoadFromAssemblies.Add(dll);