Skip to content

Commit

Permalink
Clean up dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
rbeauchamp committed Oct 31, 2016
1 parent 0e32447 commit fc817e3
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 19 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Install the Swashbuckle.OData NuGet package:

In `SwaggerConfig` configure the custom provider:
```csharp
c.CustomProvider(defaultProvider => new ODataSwaggerProvider(defaultProvider, c));
c.CustomProvider(defaultProvider => new ODataSwaggerProvider(defaultProvider, c, GlobalConfiguration.Configuration));
```

### Include Navigation Properties in your entity swagger models ###
Expand Down
2 changes: 1 addition & 1 deletion Swashbuckle.OData.Sample/App_Start/SwaggerConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public static void Register()
// Wrap the default SwaggerGenerator with additional behavior (e.g. caching) or provide an
// alternative implementation for ISwaggerProvider with the CustomProvider option.
//
c.CustomProvider(defaultProvider => new ODataSwaggerProvider(defaultProvider, c).Configure(odataConfig =>
c.CustomProvider(defaultProvider => new ODataSwaggerProvider(defaultProvider, c, GlobalConfiguration.Configuration).Configure(odataConfig =>
{
// Set this flag to include navigation properties in your entity swagger models
//
Expand Down
12 changes: 0 additions & 12 deletions Swashbuckle.OData/ODataSwaggerProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,6 @@ public class ODataSwaggerProvider : ISwaggerProvider
private readonly ISwaggerProvider _defaultProvider;
private readonly ODataSwaggerDocsConfig _config;

/// <summary>
/// Initializes a new instance of the <see cref="ODataSwaggerProvider" /> class.
/// </summary>
/// <param name="defaultProvider">The default provider.</param>
/// <param name="swaggerDocsConfig">The swagger docs configuration.</param>
public ODataSwaggerProvider(ISwaggerProvider defaultProvider, SwaggerDocsConfig swaggerDocsConfig)
: this(defaultProvider, swaggerDocsConfig, GlobalConfiguration.Configuration)
{
Contract.Requires(defaultProvider != null);
Contract.Requires(swaggerDocsConfig != null);
}

/// <summary>
/// Initializes a new instance of the <see cref="ODataSwaggerProvider" /> class.
/// Use this constructor for self-hosted scenarios.
Expand Down
4 changes: 0 additions & 4 deletions Swashbuckle.OData/Swashbuckle.OData.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,6 @@
<HintPath>..\packages\Microsoft.AspNet.WebApi.Core.5.2.3\lib\net45\System.Web.Http.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System.Web.Http.WebHost, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.AspNet.WebApi.WebHost.5.2.3\lib\net45\System.Web.Http.WebHost.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System.Web.OData, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.AspNet.OData.6.0.0\lib\net45\System.Web.OData.dll</HintPath>
<Private>True</Private>
Expand Down
1 change: 0 additions & 1 deletion Swashbuckle.OData/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<package id="Microsoft.AspNet.OData" version="6.0.0" targetFramework="net452" />
<package id="Microsoft.AspNet.WebApi.Client" allowedVersions="(,6.0.0)" version="5.2.3" targetFramework="net452" />
<package id="Microsoft.AspNet.WebApi.Core" allowedVersions="(,6.0.0)" version="5.2.3" targetFramework="net452" />
<package id="Microsoft.AspNet.WebApi.WebHost" allowedVersions="(,6.0.0)" version="5.2.3" targetFramework="net452" />
<package id="Microsoft.Extensions.DependencyInjection" version="1.0.0" targetFramework="net452" />
<package id="Microsoft.Extensions.DependencyInjection.Abstractions" version="1.0.0" targetFramework="net452" />
<package id="Microsoft.OData.Core" version="7.0.0" targetFramework="net452" />
Expand Down

0 comments on commit fc817e3

Please sign in to comment.