servicestack - How to configure AppHostBase virtual methods? -
apphostbase has 2 overridable methods can configure inherited application host
init()
configure(container container)
is there rule know better?
for instance:
container.registeras<smtpemailer, iemailer>().reusedwithin(reusescope.request);
ormliteconfig.commandtimeout = 120;
container.registervalidators(typeof(customerservice).assembly);
plugins.add(new seqrequestlogsfeature(new seqrequestlogssettings(appsettings.getstring("sequrl"))));
is better call these lines on init()
or configure()
or depends?
all servicestack configuration should maintained in apphost.configure()
abstract method every apphost needs override.
Comments
Post a Comment