-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
400 changed files
with
649 additions
and
202,326 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,5 @@ | ||
_ReSharper.* | ||
.vs | ||
*.user | ||
bin | ||
Bin | ||
obj | ||
build | ||
dist | ||
*.suo | ||
*resharper* | ||
*.user | ||
*.cache | ||
*.dotCover | ||
lib/Ninject/*.zip | ||
lib/Ninject/*/** | ||
lib/Ninject.Web.Common/*.zip | ||
lib/Ninject.Web.Common/*/** | ||
packages |
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,10 @@ | ||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) | ||
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). | ||
|
||
## [Unreleased] - 2017-10-19 | ||
|
||
### Removed | ||
- Dropped support for ASP.NET MVC 1,2,3,4. |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Ninject.Web.Mvc | ||
|
||
[![Build status](https://ci.appveyor.com/api/projects/status/7af63sr9x1mwuhd8?svg=true)](https://ci.appveyor.com/project/Ninject/ninject-web-mvc) | ||
[![NuGet Version](http://img.shields.io/nuget/v/Ninject.Mvc5.svg?style=flat)](https://www.nuget.org/packages/Ninject.Mvc5/) | ||
[![NuGet Downloads](http://img.shields.io/nuget/dt/Ninject.Mvc5.svg?style=flat)](https://www.nuget.org/packages/Ninject.Mvc5/) | ||
|
||
This extension allows integration between the [Ninject](http://github.com/ninject/ninject/) | ||
and [ASP.NET MVC](http://www.asp.net/mvc/) projects. To use it, just make your HttpApplication | ||
(typically in Global.asax.cs) extend NinjectHttpApplication: | ||
|
||
```C# | ||
public class YourWebApplication : NinjectHttpApplication | ||
{ | ||
public override void OnApplicationStarted() | ||
{ | ||
// This is only needed in MVC1 | ||
RegisterAllControllersIn("Some.Assembly.Name"); | ||
} | ||
|
||
public override IKernel CreateKernel() | ||
{ | ||
return new StandardKernel(new SomeModule(), new SomeOtherModule(), ...); | ||
|
||
// OR, to automatically load modules: | ||
var kernel = new StandardKernel(); | ||
kernel.AutoLoadModules("~/bin"); | ||
return kernel; | ||
} | ||
} | ||
``` | ||
|
||
Once you do this, your controllers will be activated via Ninject, meaning you can expose dependencies on | ||
their constructors (or properties, or methods) to request injections. |
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,40 @@ | ||
configuration: Release | ||
|
||
image: Visual Studio 2017 | ||
|
||
init: | ||
- ps: >- | ||
if ($env:APPVEYOR_REPO_TAG -eq "true") | ||
{ | ||
Update-AppveyorBuild -Version "$env:APPVEYOR_REPO_TAG_NAME" | ||
} | ||
else | ||
{ | ||
Update-AppveyorBuild -Version "3.3.0-ci.$($env:APPVEYOR_BUILD_NUMBER)+sha.$($env:APPVEYOR_REPO_COMMIT.substring(0,7))" | ||
} | ||
dotnet_csproj: | ||
patch: true | ||
file: '**\*.csproj' | ||
version: '{version}' | ||
package_version: '{version}' | ||
|
||
cache: | ||
- '%LocalAppData%\NuGet\v3-cache -> **\*.csproj' | ||
|
||
before_build: | ||
- dotnet restore --verbosity quiet | ||
|
||
build: | ||
parallel: true | ||
verbosity: minimal | ||
|
||
artifacts: | ||
- path: '**\*.nupkg' | ||
|
||
deploy: | ||
provider: NuGet | ||
api_key: | ||
secure: Sn05A/FiUAlID5v31uaf5EZuYCSo4frLONtrCY+cwY265dU2JUZsl2+sjVeLQyz/ | ||
on: | ||
appveyor_repo_tag: true |
Binary file not shown.
Binary file not shown.
Oops, something went wrong.