Exemple #1
0
        public virtual Task Run()
        {
            var result = eventEmitter.Execute(GetEntropicData()).Result;

            if (result.ExtractionSuccessful)
            {
                OnEntropyAvailable?.Invoke(result);
            }
            else
            {
                FailedEventCount++;

                if (FailedEventCount >= Constants.FailedEventThreshold)
                {
                    IsHealthy = false;
                }
            }

            return(Task.CompletedTask);
        }