コード例 #1
0
 public string StoreVerificationData(string mailAddress, string internalMemnerId, string memberDivision)
 {
     try
     {
         PCSiteTraceSource.MethodStart();
         var tokenGenerator     = new TokenGenetator();
         var token              = tokenGenerator.GenerateToken(internalMemnerId, new MailAddress(mailAddress));
         var azureTableOperator = new AzureTableOperation();
         azureTableOperator.StoreEmailAddressIfNeed(internalMemnerId, new MailAddress(mailAddress));
         azureTableOperator.StorePasswordResetRequest(internalMemnerId, memberDivision);
         return(token);
     }
     catch (TableNotFoundException tex)
     {
         PCSiteTraceSource.ConnectionFailToAzureStorageTable("VerifiedEmailテーブル、またはStoredTokenテーブル", tex);
         throw;
     }
 }