diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-06-14 14:56:16 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-06-14 14:56:16 +0300 |
| commit | 099cb04861e293cf675d8b5216448a766eef7954 (patch) | |
| tree | 29c9cd2cb877e8b44d51dbc1b755c9a81cf300b9 /Software/Visual_Studio/PPC/Tango.PPC.Common/Authentication | |
| parent | 03959e785f635697fcdf0f99aad9454fafbf4e2e (diff) | |
| download | Tango-099cb04861e293cf675d8b5216448a766eef7954.tar.gz Tango-099cb04861e293cf675d8b5216448a766eef7954.zip | |
Implemented new fast job pie chart rendering using GDI!
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/Authentication')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.Common/Authentication/DefaultAuthenticationProvider.cs | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Authentication/DefaultAuthenticationProvider.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/Authentication/DefaultAuthenticationProvider.cs deleted file mode 100644 index f49beb32d..000000000 --- a/Software/Visual_Studio/PPC/Tango.PPC.Common/Authentication/DefaultAuthenticationProvider.cs +++ /dev/null @@ -1,44 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Tango.BL; -using Tango.BL.Entities; -using Tango.Core; - -namespace Tango.PPC.Common.Authentication -{ - public class DefaultAuthenticationProvider : ExtendedObject, IAuthenticationProvider - { - private User _currentUser; - - public User CurrentUser - { - get { return _currentUser; } - private set - { - _currentUser = value; - RaisePropertyChangedAuto(); - } - } - - public event EventHandler<User> CurrentUserChanged; - - public Task<User> Login(string email, string password) - { - return Task.Factory.StartNew(() => - { - CurrentUser = ObservablesEntitiesAdapter.Instance.Users.SingleOrDefault(x => x.Email.ToLower() == email && x.Password == password); - CurrentUserChanged?.Invoke(this, CurrentUser); - return CurrentUser; - }); - } - - public void Logout() - { - CurrentUser = null; - CurrentUserChanged?.Invoke(this, CurrentUser); - } - } -} |
