diff --git a/README.md b/README.md index 0302ecb..296ef3e 100644 --- a/README.md +++ b/README.md @@ -93,8 +93,7 @@ public class Startup { options.SecurityTokenValidatorsFactory = () => { - var context = services.BuildServiceProvider().GetService().HttpContext; - return context.RequestServices.GetServices(); + return services.BuildServiceProvider().GetServices(); }; }); } diff --git a/src/MakingSense.AspNetCore.Authentication.SimpleToken/README.md b/src/MakingSense.AspNetCore.Authentication.SimpleToken/README.md index 0302ecb..296ef3e 100644 --- a/src/MakingSense.AspNetCore.Authentication.SimpleToken/README.md +++ b/src/MakingSense.AspNetCore.Authentication.SimpleToken/README.md @@ -93,8 +93,7 @@ public class Startup { options.SecurityTokenValidatorsFactory = () => { - var context = services.BuildServiceProvider().GetService().HttpContext; - return context.RequestServices.GetServices(); + return services.BuildServiceProvider().GetServices(); }; }); }