public void TriggerSyncJobExecution(object state) { // sync generic metadata, because this is our regular, lazy job _jobExecutionQueue.AddJobForScheduleEvent(async() => await _syncJob.SynchronizeAsync(synchronizeGenericMetadata: true) ); }
private async Task SubscribeToPusherChannelAsync(int channelId) { _channel = await _pusher.SubscribeAsync($"private-2-{channelId}"); _channel.Bind("global-transaction-history-update", (payload) => { _logger.LogInformation("Received Pusher event"); // do not sync generic metadata, because we need to be fast here _jobExecutionQueue.AddJobForPushEvent(async() => await _syncJob.SynchronizeAsync(synchronizeGenericMetadata: false) ); }); }