Beispiel #1
0
        public async Task SaveDocumentAnalysisStatusChangedEventAsync(Guid documentId, Guid taskId, Guid userId, OperationStatus status, double result = 0.0, string documentName = null)
        {
            var @event = new DocumentAnalysisStatusChangedEvent
            {
                DocumentId    = documentId,
                DocumentName  = documentName,
                TaskId        = taskId,
                Status        = status,
                OccurenceDate = DateTime.Now,
                Result        = result
            };

            await _analysisService.SaveAnalysisStatusChanged(@event, userId);
        }
Beispiel #2
0
 public async Task SaveAnalysisStatusChanged(DocumentAnalysisStatusChangedEvent @event, Guid userId) =>
 await SaveEvent(@event, userId.ToUserAnalysesStreamName());