-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'upgrade-nuget-and-iis'
- Loading branch information
Showing
13 changed files
with
235 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
src/Svenkle.NuGetServer.Website/App_Start/NuGetODataConfig.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using System.Net.Http; | ||
using System.Web.Http; | ||
using System.Web.Http.Routing; | ||
using NuGet.Server; | ||
using NuGet.Server.V2; | ||
|
||
[assembly: WebActivatorEx.PreApplicationStartMethod(typeof(Svenkle.NuGetServer.Website.App_Start.NuGetODataConfig), "Start")] | ||
|
||
namespace Svenkle.NuGetServer.Website.App_Start | ||
{ | ||
public static class NuGetODataConfig | ||
{ | ||
public static void Start() | ||
{ | ||
ServiceResolver.SetServiceResolver(new DefaultServiceResolver()); | ||
|
||
var config = GlobalConfiguration.Configuration; | ||
|
||
NuGetV2WebApiEnabler.UseNuGetV2WebApiFeed(config, "NuGetDefault", "nuget", "PackagesOData"); | ||
|
||
config.Routes.MapHttpRoute( | ||
name: "NuGetDefault_ClearCache", | ||
routeTemplate: "nuget/clear-cache", | ||
defaults: new { controller = "PackagesOData", action = "ClearCache" }, | ||
constraints: new { httpMethod = new HttpMethodConstraint(HttpMethod.Get) } | ||
); | ||
|
||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.