public Task TrackFailedAsync(UserEventMessage userEvent, CancellationToken ct) { Guard.NotNull(userEvent, nameof(userEvent)); var counterMap = CounterMap.ForNotification(ProcessStatus.Failed); var counterKey = CounterKey.ForUserEvent(userEvent); return(StoreCountersAsync(counterKey, counterMap)); }
public Task TrackAttemptAsync(UserEventMessage userEvent, CancellationToken ct = default) { Guard.NotNull(userEvent); var counterMap = CounterMap.ForNotification(ProcessStatus.Attempt); var counterKey = CounterKey.ForUserEvent(userEvent); return(StoreCountersAsync(counterKey, counterMap, ct)); }