/// <summary>
/// Starts up the Application.
/// </summary>
/// <param name="container">The container.</param>
/// <param name="pipelines">The pipelines.</param>
protected override void ApplicationStartup(TinyIoC.TinyIoCContainer container, Nancy.Bootstrapper.IPipelines pipelines)
{
base.ApplicationStartup(container, pipelines);
container.Register<UserProvider>().AsPerRequestSingleton();
}
The above is my existing application startup containing my TinyIoc configuration. Is there any way to take all interface registrations and turn them all into PerRequestSingletons? I can't do them 'one by one' as I have too many repositories, and I can't leave them as singletons, because it doesn't work with the way that NHibernate is set up.