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