public override async Task InsertOrReplace(IBaseReportMetadata reportMetadata)
        {
            var item = await _storage.GetDataAsync(BaseReportMetadataEntity.GeneratePartitionKey(),
                                                   BaseReportMetadataEntity.GenerateRowKey(reportMetadata.Id));

            reportMetadata.FileUrl = item?.FileUrl;

            await base.InsertOrReplace(reportMetadata);
        }
Ejemplo n.º 2
0
 public static AddressReportMetadataViewModel Create(IBaseReportMetadata source)
 {
     return(new AddressReportMetadataViewModel
     {
         Address = source.Id,
         FileUrl = source.FileUrl,
         Finished = source.Finished,
         Status = source.Status.ToString(),
         LastError = source.LastError,
         Started = source.Started,
         QueuedAt = source.QueuedAt
     });
 }
Ejemplo n.º 3
0
 public static BaseReportMetadataEntity Create(IBaseReportMetadata source)
 {
     return(new BaseReportMetadataEntity
     {
         Status = source.Status.ToString(),
         Id = source.Id,
         FileUrl = source.FileUrl,
         LastError = source.LastError,
         Started = source.Started,
         Finished = source.Finished,
         PartitionKey = GeneratePartitionKey(),
         RowKey = GenerateRowKey(source.Id),
         QueuedAt = source.QueuedAt
     });
 }
Ejemplo n.º 4
0
 public virtual Task InsertOrReplace(IBaseReportMetadata reportMetadata)
 {
     return(_storage.InsertOrReplaceAsync(BaseReportMetadataEntity.Create(reportMetadata)));
 }