Skip to content

Instantly share code, notes, and snippets.

@RobinBeismann
Created February 18, 2021 15:34
Show Gist options
  • Save RobinBeismann/6c8809b4eeb6ef4f1b71f92f0e09c738 to your computer and use it in GitHub Desktop.
Save RobinBeismann/6c8809b4eeb6ef4f1b71f92f0e09c738 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="swaggerwcf" type="SwaggerWcf.Configuration.SwaggerWcfSection, SwaggerWcf" />
<section name="lithnetResourceManagementClient" type="Lithnet.ResourceManagement.Client.ClientConfigurationSection, Lithnet.ResourceManagement.Client" />
</configSections>
<appSettings>
<add key="pageCacheIntervalSeconds" value="60" />
</appSettings>
<swaggerwcf>
<tags>
<tag name="LowPerformance" visible="false" />
</tags>
<settings>
<setting name="InfoDescription" value="Lithnet Resource Management Web Service" />
<setting name="InfoVersion" value="1.0" />
<setting name="InfoTitle" value="Lithnet REST API for FIM/MIM Service" />
<setting name="InfoContactName" value="Ryan Newington" />
<setting name="InfoContactUrl" value="https://github.com/lithnet/resourcemanagement-webservice" />
</settings>
</swaggerwcf>
<system.serviceModel>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
<services>
<service name="Lithnet.ResourceManagement.WebService.v1.ResourceManagementWebServicev1" behaviorConfiguration="restAPIBehaviour">
<endpoint address="" behaviorConfiguration="json" binding="webHttpBinding" name="jsonEP" contract="Lithnet.ResourceManagement.WebService.v1.IResourceManagementWebServicev1" />
</service>
<service name="Lithnet.ResourceManagement.WebService.v2.ResourceManagementWebServicev2" behaviorConfiguration="restAPIBehaviour">
<endpoint address="" behaviorConfiguration="json" binding="webHttpBinding" name="jsonEP" contract="Lithnet.ResourceManagement.WebService.v2.IResourceManagementWebServicev2"/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="restAPIBehaviour">
<serviceMetadata httpsGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
<endpointBehaviors>
<behavior name="json">
<webHttp helpEnabled="true" automaticFormatSelectionEnabled="true" defaultBodyStyle="Bare" defaultOutgoingResponseFormat="Json" />
</behavior>
</endpointBehaviors>
</behaviors>
<bindings>
<webHttpBinding>
<binding>
<security mode="Transport">
<transport clientCredentialType="Windows"/>
</security>
</binding>
</webHttpBinding>
</bindings>
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true">
<remove name="WebDAVModule" />
</modules>
<directoryBrowse enabled="false" />
<handlers>
<remove name="ExtensionlessUrlHandler-Integrated-4.0" />
<remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" />
<remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" />
<remove name="WebDAV" />
<add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*" verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" />
<add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*" verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" />
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*" verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
</handlers>
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Microsoft.ResourceManagement" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.3653.0" newVersion="4.6.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="11.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<system.web>
<compilation targetFramework="4.6.1" />
<identity impersonate="true" />
</system.web>
<lithnetResourceManagementClient resourceManagementServiceBaseAddress="http://serviceurl:5725" />
</configuration>
<!--ProjectGuid: FFCEED27-07FC-4C47-88E2-A432E449F440-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment