コード例 #1
0
        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));
        }
コード例 #2
0
        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));
        }