Exemple #1
0
        public ReportsManager(ILoggerFactoryWrapper loggerFactory, IFileSystem fileSystem, IDirectCertificateRenewalManager certificateRenewalManager, IDirectProvisioningManager provisioningManager, IDirectRoutingServiceDirectRemovalSyncServiceManager routingServiceDirectRemovalSyncServiceManager)
        {
            if (null == loggerFactory)
            {
                throw new ArgumentNullException(ErrorMessageILoggerFactoryWrapperIsNull, (Exception)null);
            }

            this.logger = loggerFactory.CreateLoggerWrapper <ReportsManager>();

            this.fileSystem = fileSystem ?? throw new ArgumentNullException(ErrorMessageIFileSystemIsNull, (Exception)null);
            this.certificateRenewalManager = certificateRenewalManager ?? throw new ArgumentNullException(ErrorMessageIDirectCertificateRenewalManagerIsNull, (Exception)null);
            this.provisioningManager       = provisioningManager ?? throw new ArgumentNullException(ErrorMessageIDirectProvisioningManagerIsNull, (Exception)null);
            this.routingServiceDirectRemovalSyncServiceManager = routingServiceDirectRemovalSyncServiceManager ?? throw new ArgumentNullException(ErrorMessageIDirectRoutingServiceDirectRemovalSyncServiceManagerIsNull, (Exception)null);
        }
 public AccountController(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     IEmailSender emailSender,
     ILoggerFactoryWrapper loggerFactoryWrapper,
     IRazorViewToString render,
     IMediator mediator)
 {
     _userManager       = userManager;
     _signInManager     = signInManager;
     _emailSender       = emailSender;
     _logger            = loggerFactoryWrapper.CreateLogger <AccountController>();
     _razorViewToString = render;
     _mediator          = mediator;
 }