public async Task PublishManagementGroupUpdatedAsync(ManagementGroup managementGroup, DateTime pointInTime, CancellationToken cancellationToken) { var @event = new PointInTimeMiddlewareEvent <ManagementGroup> { Details = managementGroup, PointInTime = pointInTime, }; await SendEventToMiddleware("management-group-updated", @event, cancellationToken); _logger.Debug($"Published management group updated: {JsonConvert.SerializeObject(managementGroup)}"); }
public async Task PublishLearningProviderUpdatedAsync(LearningProvider learningProvider, DateTime pointInTime, CancellationToken cancellationToken) { var @event = new PointInTimeMiddlewareEvent <LearningProvider> { Details = learningProvider, PointInTime = pointInTime, }; await SendEventToMiddleware("learning-provider-updated", @event, cancellationToken); _logger.Debug($"Published learning provider updated: {JsonConvert.SerializeObject(learningProvider)}"); }