コード例 #1
0
 internal static async Task <string> GetUserName(AuthProvider provider)
 {
     if (provider == AuthProvider.MicrosoftAccount)
     {
         return(await LiveIdAuth.GetUserName());
     }
     else
     {
         return(await O365Auth.GetUserName());
     }
 }
コード例 #2
0
 internal static async Task SignOut(AuthProvider provider)
 {
     if (provider == AuthProvider.MicrosoftAccount)
     {
         await LiveIdAuth.SignOut();
     }
     else
     {
         await O365Auth.SignOut();
     }
 }