Example #1
0
        public void FaultInteractor(IInteractor interactor, Exception error)
        {
            Log.Info($"Faulting interactor: {interactor}");

            _repository.Remove(interactor);
            FaultedInteractors?.Invoke(this, new InteractorFaultedEventArgs(interactor, error));
        }
        public void FaultInteractor(Interactor interactor, Exception error)
        {
            _logger.LogInformation("Faulting interactor: {Interactor}", interactor);

            interactor.Metrics.Faulted.Inc();

            _repository.Remove(interactor);
            FaultedInteractors?.Invoke(this, new InteractorFaultedEventArgs(interactor, error));
        }