diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-08-13 14:22:32 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-08-13 14:22:32 +0300 |
| commit | 4490b0a76d4188cb285d62b106e208803ceaa133 (patch) | |
| tree | a24f3d5653979ebaff86b524f452d20c74df3327 /Software/Visual_Studio/PPC/Tango.PPC.UI/Authentication/DefaultAuthenticationProvider.cs | |
| parent | d3c0c73dc2aeae2dacf4224ce7997609132426a1 (diff) | |
| download | Tango-4490b0a76d4188cb285d62b106e208803ceaa133.tar.gz Tango-4490b0a76d4188cb285d62b106e208803ceaa133.zip | |
PPC.Common Logs and comments!
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Authentication/DefaultAuthenticationProvider.cs')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.UI/Authentication/DefaultAuthenticationProvider.cs | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Authentication/DefaultAuthenticationProvider.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/Authentication/DefaultAuthenticationProvider.cs index 7196c9743..0bae5a237 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Authentication/DefaultAuthenticationProvider.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Authentication/DefaultAuthenticationProvider.cs @@ -19,8 +19,11 @@ namespace Tango.PPC.UI.Authentication /// <seealso cref="Tango.PPC.Common.Authentication.IAuthenticationProvider" /> public class DefaultAuthenticationProvider : ExtendedObject, IAuthenticationProvider { + /// <summary> + /// Gets or sets the navigation manager. + /// </summary> [TangoInject(TangoInjectMode.WhenAvailable)] - private INavigationManager _navigation; + public INavigationManager NavigationManager { get; set; } /// <summary> /// Occurs when the current logged-in user has changed. @@ -41,11 +44,6 @@ namespace Tango.PPC.UI.Authentication } } - public DefaultAuthenticationProvider() - { - - } - /// <summary> /// Performs a user login by the specified email and password. /// </summary> @@ -67,7 +65,7 @@ namespace Tango.PPC.UI.Authentication { CurrentUser = null; CurrentUserChanged?.Invoke(this, CurrentUser); - _navigation.NavigateTo(NavigationView.LoginView); + NavigationManager.NavigateTo(NavigationView.LoginView); } } } |
