From 577396186b0c5b1d300303158d4884ae673db7f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Mon, 6 Apr 2020 11:28:35 +0300 Subject: [PATCH] Update Customize-SignIn-Manager.md --- docs/en/How-To/Customize-SignIn-Manager.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/en/How-To/Customize-SignIn-Manager.md b/docs/en/How-To/Customize-SignIn-Manager.md index a0fa26b9b7..61b6c3b7b5 100644 --- a/docs/en/How-To/Customize-SignIn-Manager.md +++ b/docs/en/How-To/Customize-SignIn-Manager.md @@ -82,12 +82,13 @@ To get your overridden method invoked and your customized SignIn Manager class t Registering `CustomSignInManager` should be done with adding **AddSignInManager** extension method of the [IdentityBuilderExtensions](https://github.com/dotnet/aspnetcore/blob/master/src/Identity/Core/src/IdentityBuilderExtensions.cs) of the [IdentityBuilder](https://github.com/dotnet/aspnetcore/blob/master/src/Identity/Extensions.Core/src/IdentityBuilder.cs). -Inside your `.Web` project, locate the `ApplicationNameWebModule` and add the following under `ConfigureServices` method to replace the old `SignInManager` with your customized one. +Inside your `.Web` project, locate the `YourProjectNameWebModule` and add the following code under the `PreConfigureServices` method to replace the old `SignInManager` with your customized one: ````csharp -context.Services -.GetObject() - .AddSignInManager(); +PreConfigure(identityBuilder => +{ + identityBuilder.AddSignInManager(); +}); ```` ## The Source Code