public void Unsubscribe(long id, LabelingType type)
 {
     if (subscribers.TryGetValue(new KeyValuePair <long, LabelingType>(id, type), out var _))
     {
         subscribers.Remove(new KeyValuePair <long, LabelingType>(id, type));
         logger.LogInformation($"Subscription for labeling {id} has been removed.");
     }
 }
 public async Task ResetRecordsVerification(long importId, LabelingType type)
 => await importsRepository.ResetRecordsVerificationAsync(importId, type);
 public void Subscribe(long id, LabelingType type)
 {
     subscribers.AddOrUpdate(new KeyValuePair <long, LabelingType>(id, type), id);
     logger.LogInformation($"Created subscription for labeling {id}.");
 }
Example #4
0
 public Task ResetRecordsVerificationAsync(long importId, LabelingType type)
 {
     return(dbContext.Database.ExecuteSqlInterpolatedAsync($"select labeling.reset_records_verification({importId},{type})"));
 }