fix: register Web API explorer for sandbox
This commit is contained in:
16
F4SDM42WebApi/DependencyRegistrator.cs
Normal file
16
F4SDM42WebApi/DependencyRegistrator.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Web.Http;
|
||||
using System.Web.Http.Description;
|
||||
|
||||
using Matrix42.Hosting.Contracts;
|
||||
|
||||
namespace C4IT.F4SD.Properties
|
||||
{
|
||||
public sealed class DependencyRegistrator : DependencyRegistratorBase, IDependencyRegistrator
|
||||
{
|
||||
public void Register(IDependencyContainer container, IDependencyResolver resolver)
|
||||
{
|
||||
container.RegisterSingletonType<IApiExplorer>((Type _) => new ApiExplorer(new HttpConfiguration()));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user