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

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -