Advertisement
Guest User

Untitled

a guest
Dec 7th, 2016
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. // 認証インタフェース
  2. public interface IAuthenticate
  3. {
  4. Task<bool> Authenticate();
  5. }
  6.  
  7. public class App : Application
  8. {
  9. public static IAuthenticate Authenticator { get; private set; }
  10.  
  11. public App ()
  12. {
  13. MainPage = new TodoList();
  14. }
  15.  
  16. // 認証インターフェイスをプラットフォーム固有の実装で初期化
  17. public static void Init(IAuthenticate authenticator)
  18. {
  19. Authenticator = authenticator;
  20. }
  21.  
  22. // 以下省略
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement