-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restructure application to show better use of .WithParentWindowOrActi… (
#112) * Restructure application to show better use of .WithParentWindowOrActivity(func) * Fix iOS
- Loading branch information
Showing
11 changed files
with
6,902 additions
and
4,781 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
UserDetailsClient/UserDetailsClient.Core/Features/LogOn/IAuthenticationService.cs
This file was deleted.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
UserDetailsClient/UserDetailsClient.Core/Features/LogOn/IParentWindowLocatorService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace UserDetailsClient.Core.Features.LogOn | ||
{ | ||
/// <summary> | ||
/// Simple platform specific service that is responsible for locating a | ||
/// </summary> | ||
public interface IParentWindowLocatorService | ||
{ | ||
object GetCurrentParentWindow(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
UserDetailsClient/UserDetailsClient.Droid/AndroidParentWindowLocatorService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
|
||
using Android.App; | ||
using Android.Content; | ||
using Android.OS; | ||
using Android.Runtime; | ||
using Android.Views; | ||
using Android.Widget; | ||
using Microsoft.Identity.Client; | ||
using Plugin.CurrentActivity; | ||
using UserDetailsClient.Core.Features.LogOn; | ||
|
||
namespace UserDetailsClient.Droid | ||
{ | ||
class AndroidParentWindowLocatorService : IParentWindowLocatorService | ||
{ | ||
public object GetCurrentParentWindow() | ||
{ | ||
return CrossCurrentActivity.Current.Activity; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.