示例#1
0
 public static bool IsProcessed(this WebPageProcessingState state)
 {
     return
         (state.Images.Count >= 3 && state.isPageProcessed &&
          ((state.TotalRecords == state.ProcessedRecords && state.ProcessedRecords != 0 && state.TotalRecords != null) ||
           (state.JsonBlobId == null && state.JsonBucket == null)));
 }
示例#2
0
 public static bool IsContainsChemicalData(this WebPageProcessingState state)
 {
     return(state.JsonBlobId != null && state.JsonBucket != null);
 }
示例#3
0
 public static async Task WebPageProcessFinished(this IPublishEndpoint endpoint, WebPageProcessingState state)
 {
     await endpoint.Publish <WebPageUploadFinished>(new
     {
         Id            = state.PageId,
         CorrelationId = state.CorrelationId,
         Timestamp     = DateTimeOffset.UtcNow
     });
 }