Skip to content

Commit

Permalink
Upgrade to 2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dodyg committed Aug 3, 2018
1 parent 5b797f5 commit 44c8576
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -498,31 +498,31 @@ All these projects require the following dependencies
Features are collection of objects you can obtain from the framework at runtime that serve different purposes.
* [Server Addresses Feature](https://github.com/dodyg/practical-aspnetcore/tree/master/projects/features-server-addresses)
* [Server Addresses Feature #2.1#](https://github.com/dodyg/practical-aspnetcore/tree/master/projects/features-server-addresses)
Use this Feature to obtain a list of urls that your app is responding to.
* [Request Feature](https://github.com/dodyg/practical-aspnetcore/tree/master/projects/features-server-request)
* [Request Feature #2.1#](https://github.com/dodyg/practical-aspnetcore/tree/master/projects/features-server-request)
Obtain details of a current request. It has some similarity to HttpContext.Request. They are not equal. `HttpContext.Request` has more properties.
* [Connection Feature](https://github.com/dodyg/practical-aspnetcore/tree/master/projects/features-connection)
* [Connection Feature #2.1#](https://github.com/dodyg/practical-aspnetcore/tree/master/projects/features-connection)
Use `IHttpConnectionFeature` interface to obtain local ip/port and remote ip/port.
* [Custom Feature](https://github.com/dodyg/practical-aspnetcore/tree/master/projects/features-server-custom)
* [Custom Featur #2.1#](https://github.com/dodyg/practical-aspnetcore/tree/master/projects/features-server-custom)
Create your own custom Feature and pass it along from a middleware.
* [Custom Feature - Override](https://github.com/dodyg/practical-aspnetcore/tree/master/projects/features-server-custom-override)
* [Custom Feature - Override #2.1#](https://github.com/dodyg/practical-aspnetcore/tree/master/projects/features-server-custom-override)
Shows how you can replace an implementation of a Feature with another within the request pipeline.
* [Request Culture Feature](https://github.com/dodyg/practical-aspnetcore/tree/master/projects/features-request-culture)
* [Request Culture Feature #2.1#](https://github.com/dodyg/practical-aspnetcore/tree/master/projects/features-request-culture)
Use this feature to detect the culture of a web request through `IRequestCultureFeature`. It needs the following dependency `"Microsoft.AspNetCore.Localization": "1.1.0"`.
* [Session Feature](https://github.com/dodyg/practical-aspnetcore/tree/master/projects/features-session)
* [Session Feature #2.1#](https://github.com/dodyg/practical-aspnetcore/tree/master/projects/features-session)
Use session within your middlewares. This sample shows a basic usage of in memory session. It needs the following dependency '"Microsoft.AspNetCore.Session" : "1.1.0-*"` and `"Microsoft.Extensions.Caching.Memory" : "1.1.0-*"`.
Expand Down
1 change: 1 addition & 0 deletions projects/features-connection/src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Hosting.Server.Features;
using Microsoft.AspNetCore.Http.Features;
using Microsoft.AspNetCore;

namespace Features.Connection
{
Expand Down
1 change: 1 addition & 0 deletions projects/features-request-culture/src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.AspNetCore.Localization;
using Microsoft.AspNetCore;

namespace StartupBasic
{
Expand Down
1 change: 1 addition & 0 deletions projects/features-server-addresses/src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Hosting.Server.Features;
using Microsoft.AspNetCore;

namespace HelloWorldWithReload
{
Expand Down
1 change: 1 addition & 0 deletions projects/features-server-custom-override/src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using Microsoft.AspNetCore.Hosting.Server.Features;
using Microsoft.AspNetCore.Http.Features;
using System;
using Microsoft.AspNetCore;

namespace HelloWorldWithReload
{
Expand Down
1 change: 1 addition & 0 deletions projects/features-server-custom/src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using Microsoft.AspNetCore.Hosting.Server.Features;
using Microsoft.AspNetCore.Http.Features;
using System;
using Microsoft.AspNetCore;

namespace HelloWorldWithReload
{
Expand Down
1 change: 1 addition & 0 deletions projects/features-server-request/src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Features;
using Microsoft.AspNetCore;

namespace Features.ServerRequest
{
Expand Down
1 change: 1 addition & 0 deletions projects/features-session/src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using Microsoft.Extensions.DependencyInjection;
using System;
using Microsoft.AspNetCore.Http.Features;
using Microsoft.AspNetCore;

namespace Features.Session
{
Expand Down

0 comments on commit 44c8576

Please sign in to comment.