Example #1
0
        public Auditor(ICallContext callContext, IBusEndpointFactory busFactory)
        {
            Guard.Against.Null(callContext, nameof(callContext));
            Guard.Against.Null(busFactory, nameof(busFactory));

            this.callContext = callContext;
            this.bus         = busFactory.Create <AuditMessage>();
        }
Example #2
0
            public IssuerCreatedHandler(ILogger <IssuerCreatedHandler> logger,
                                        IEmailService emailService,
                                        IMapper mapper,
                                        IBusEndpointFactory busFactory,
                                        IDateTime dateTime)
            {
                Guard.Against.Null(logger, nameof(logger));
                Guard.Against.Null(emailService, nameof(emailService));
                Guard.Against.Null(mapper, nameof(mapper));
                Guard.Against.Null(busFactory, nameof(busFactory));

                this.logger       = logger;
                this.emailService = emailService;
                this.mapper       = mapper;
                this.busFactory   = busFactory;
                this.dateTime     = dateTime;
            }