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))); }
public static bool IsContainsChemicalData(this WebPageProcessingState state) { return(state.JsonBlobId != null && state.JsonBucket != null); }
public static async Task WebPageProcessFinished(this IPublishEndpoint endpoint, WebPageProcessingState state) { await endpoint.Publish <WebPageUploadFinished>(new { Id = state.PageId, CorrelationId = state.CorrelationId, Timestamp = DateTimeOffset.UtcNow }); }