コード例 #1
0
        public static RegisterMailSentEntity Create(string userId)
        {
            var result = new RegisterMailSentEntity
            {
                PartitionKey = GeneratePartitionKey(),
                RowKey       = GenerateRowKey(userId),
                UserId       = userId
            };

            return(result);
        }
コード例 #2
0
        public async Task <IRegisterMailSentData> GetRegisterAsync(string userId)
        {
            var partitionKey = RegisterMailSentEntity.GeneratePartitionKey();

            return(await _mailSentStorage.GetDataAsync(partitionKey, userId));
        }
コード例 #3
0
 public async Task SaveRegisterAsync(string userId)
 {
     var newEntity = RegisterMailSentEntity.Create(userId);
     await _mailSentStorage.InsertAsync(newEntity);
 }