Esempio n. 1
0
        public static MailSentEntity Create(string partition, string userId, string projectId = "")
        {
            var result = new MailSentEntity
            {
                PartitionKey = GeneratePartitionKey(partition),
                RowKey       = GenerateRowKey(userId, projectId),
                UserId       = userId,
                ProjectId    = projectId
            };

            return(result);
        }
Esempio n. 2
0
        public async Task <IEnumerable <IMailSentData> > GetFollowAsync()
        {
            var partitionKey = MailSentEntity.GeneratePartitionKey("Follow");

            return(await _mailSentStorage.GetDataAsync(partitionKey));
        }
Esempio n. 3
0
        public async Task <IEnumerable <IMailSentData> > GetRegisterAsync(string userId)
        {
            var partitionKey = MailSentEntity.GeneratePartitionKey("Register");

            return(await _mailSentStorage.GetDataAsync(partitionKey));
        }
Esempio n. 4
0
 public async Task SaveFollowAsync(string userId, string projectId)
 {
     var newEntity = MailSentEntity.Create("Follow", userId, projectId);
     await _mailSentStorage.InsertAsync(newEntity);
 }