diff --git a/src/Lithnet.CredentialProvider/CredentialTile.ICredentialProviderCredential.cs b/src/Lithnet.CredentialProvider/CredentialTile.ICredentialProviderCredential.cs
index 90c348b..247a9f6 100644
--- a/src/Lithnet.CredentialProvider/CredentialTile.ICredentialProviderCredential.cs
+++ b/src/Lithnet.CredentialProvider/CredentialTile.ICredentialProviderCredential.cs
@@ -67,7 +67,7 @@ namespace Lithnet.CredentialProvider
this.logger.LogTrace("SetSelected");
this.IsSelected = true;
this.OnSelected();
- pbAutoLogon = this.ShouldAutoLogon() ? 1 : 0;
+ pbAutoLogon = this.OnSelectedShouldAutoLogon() ? 1 : 0;
return HRESULT.S_OK;
}
catch (Exception ex)
diff --git a/src/Lithnet.CredentialProvider/CredentialTile.cs b/src/Lithnet.CredentialProvider/CredentialTile.cs
index 4cd1edc..ab5de5e 100644
--- a/src/Lithnet.CredentialProvider/CredentialTile.cs
+++ b/src/Lithnet.CredentialProvider/CredentialTile.cs
@@ -170,7 +170,7 @@ namespace Lithnet.CredentialProvider
///
/// In Windows 10, if a credential provider wants to automatically log the user on in a situation Windows does not think is appropriate, the system will display a sign in button as a speed bump. One example of this is when a user with an empty password locks the computer or signs out. In that scenario, Windows does not directly log the user back in.
///
- protected virtual bool ShouldAutoLogon() => false;
+ protected virtual bool OnSelectedShouldAutoLogon() => false;
///
/// Called when a user deselects this tile