fix: register Web API explorer for sandbox
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
<module assembly="Matrix42.Pandora.BizLogic" />
|
||||
<module assembly="Matrix42.Pandora.Services" />
|
||||
<module assembly="Matrix42.ServiceManager.BizLogic" />
|
||||
<module assembly="C4ITF4SDM42WebApi" />
|
||||
</modules>
|
||||
<sections></sections>
|
||||
</host>
|
||||
|
||||
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()));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,7 +13,7 @@
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
<M42ExtensionId>6673a25d-33d6-4072-91d9-abed4be1a966</M42ExtensionId>
|
||||
<M42AssemblyPattern>C4ITF4SD*.*</M42AssemblyPattern>
|
||||
<M42PackageVersion>1.4.0.7</M42PackageVersion>
|
||||
<M42PackageVersion>1.4.0.8</M42PackageVersion>
|
||||
<M42BuildPackage>true</M42BuildPackage>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -62,6 +62,10 @@
|
||||
<HintPath>M42Libraries\26.1\System.Net.Http.Formatting.dll</HintPath>
|
||||
<Private>false</Private>
|
||||
</Reference>
|
||||
<Reference Include="System.Web.Http">
|
||||
<HintPath>M42Libraries\26.1\System.Web.Http.dll</HintPath>
|
||||
<Private>false</Private>
|
||||
</Reference>
|
||||
<Reference Include="update4u.SPS.DataLayer">
|
||||
<HintPath>M42Libraries\26.1\update4u.SPS.DataLayer.dll</HintPath>
|
||||
<Private>false</Private>
|
||||
@@ -78,6 +82,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="cM42LogEntry.cs" />
|
||||
<Compile Include="DependencyRegistrator.cs" />
|
||||
<Compile Include="F4SDHelperService.cs" />
|
||||
<Compile Include="F4SDM42WebApiController.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
|
||||
Reference in New Issue
Block a user