2013-08-29 01:25:12 +03:00
|
|
|
using Microsoft.Owin.Hosting.Services;
|
2013-08-29 01:08:01 +03:00
|
|
|
using Microsoft.Owin.Hosting.Tracing;
|
|
|
|
|
|
|
|
namespace NzbDrone.Host.Owin
|
|
|
|
{
|
2013-08-29 01:25:12 +03:00
|
|
|
public static class OwinServiceProviderFactory
|
2013-08-29 01:08:01 +03:00
|
|
|
{
|
2013-08-29 01:25:12 +03:00
|
|
|
public static ServiceProvider Create()
|
2013-08-29 01:08:01 +03:00
|
|
|
{
|
2013-08-29 01:25:12 +03:00
|
|
|
var provider = (ServiceProvider)ServicesFactory.Create();
|
|
|
|
provider.Add(typeof(ITraceOutputFactory), typeof(OwinTraceOutputFactory));
|
2013-08-29 01:08:01 +03:00
|
|
|
|
2013-08-29 01:25:12 +03:00
|
|
|
return provider;
|
2013-08-29 01:08:01 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|