Esempio n. 1
0
 public static UserAssignmentFailEntity Create(IUserAssignmentFail userAssignmentFail)
 {
     return(new UserAssignmentFailEntity
     {
         CanBeRestoredInternally = userAssignmentFail.CanBeRestoredInternally,
         FailCount = userAssignmentFail.FailCount,
         ContractAddress = userAssignmentFail.ContractAddress,
         PartitionKey = GetPartition()
     });
 }
        public async Task SaveAsync(IUserAssignmentFail userAssignmentFail)
        {
            var entity = UserAssignmentFailEntity.Create(userAssignmentFail);

            await _table.InsertOrReplaceAsync(entity);
        }