Commit Graph

11 Commits

Author SHA1 Message Date
Hossam Barakat 9119433ab7 Add the middleware name to the exception message UseMiddlewareNoInvokeMethod (#993)
Addresses #927
Addresses aspnet/Home#2692
2018-02-01 06:22:08 -08:00
David Fowler 6cd313fcfa
Revert "Change MiddlewareFactory to type activate IMiddleware as a fallback (#988)" (#991)
This reverts commit 44d5bf074f.
2018-01-30 10:28:52 -08:00
David Fowler 44d5bf074f
Change MiddlewareFactory to type activate IMiddleware as a fallback (#988)
- This eases the transition and learning when you discover there's
an interface for middleware.
2018-01-25 13:51:54 -08:00
Nate McMaster 5b58a6a71d Upgrade to xunit 2.3.0-beta4 2017-08-22 16:29:13 -07:00
Pranav K a78b194a84 Remove usage of TaskCache 2017-06-08 13:46:05 -07:00
Nate McMaster bf0b0e283d Upgrade test framework versions and fix test issues 2017-05-15 15:25:02 -07:00
John Luo 2bdbbbf41d UseMiddleware resolves InvokeAsync in addition to Invoke 2017-03-27 11:28:09 -07:00
David Fowler 945b4e63de Added support for middleware activation via IMiddlewareFactory (#773)
* Added support for middleware activation via IMiddlewareFactory
- IMiddlewareFactory and IMiddleware are new extensiblity points for
activating and authoring middleware. Under the covers, middleware is still
very much just a function. This just provides a nice way to get a per request
activated middleware instance that is created and released via the IMiddlewareFactory.
The caveats are that middleware needs to be registered in the container (by default)
and that not possible to explicitly pass arguments directly via UseMiddleware.
- Added tests
2017-02-13 18:53:10 -08:00
Doug Bunting 6725d68559 Move some implementations (all feature implementations) out of `.Internal` namespaces
- #549, #592
- move feature implementations to `Microsoft.AspNetCore.Http.Features` and `...Authentication.Features`
- move `DefaultHttpContext`, `HttpContextAccessor`, `HttpContextFactory`, `FormCollection` and
  `HeaderDictionary` to `Microsoft.AspNetCore.Http`
- move `FormFile` to `Microsoft.AspNetCore.Http.Internal`
 - that and `Microsoft.AspNetCore.Http.Authentication.Internal` are the remaining `.Internal` namespaces

nits:
- remove a couple of parameterless constructors
- add / fill subfolders to align with new namespaces
- remove all use of (unnecessary) "T:..." `<see cref=""/>` values
2016-03-30 16:01:37 -07:00
N. Taylor Mullen 02363da94e Rename AspNet 5 file contents.
See https://github.com/aspnet/Announcements/issues/144 for more information.
2016-01-22 12:20:40 -08:00
N. Taylor Mullen b2c154b576 Rename AspNet 5 folders and files.
See https://github.com/aspnet/Announcements/issues/144 for more information.
2016-01-22 12:20:30 -08:00