Created
April 30, 2018 01:08
-
-
Save wellingtonjhn/c1d158376291764a6efa82553f33aa0a to your computer and use it in GitHub Desktop.
HttpcontextAccessor DI
This file contains hidden or 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
| public void ConfigureServices(IServiceCollection services) | |
| { | |
| // ... restante do método ocultado | |
| services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>(); | |
| services.AddScoped<AuthenticatedUser>(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment