fix: register Web API explorer for sandbox

This commit is contained in:
Meik
2026-06-26 20:11:06 +02:00
parent 3b8524e940
commit 10aeb625e1
3 changed files with 23 additions and 1 deletions

View 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()));
}
}
}