Beispiel #1
0
        public AuthMessageSender(
            IOptionsSnapshot <SiteSettings> smtpConfig,
            IViewRendererService viewRendererService)
        {
            _smtpConfig = smtpConfig;
            _smtpConfig.CheckArgumentIsNull(nameof(_smtpConfig));

            _viewRendererService = viewRendererService;
            _viewRendererService.CheckArgumentIsNull(nameof(_viewRendererService));
        }
 /// <summary>
 /// A web mail service using the `MailKit` library.
 /// </summary>
 public WebMailService(IViewRendererService viewRendererService)
 {
     _viewRendererService = viewRendererService ?? throw new ArgumentNullException(nameof(viewRendererService));
 }
 public ViewRendererServiceController(IViewRendererService viewRendererService)
 {
     _viewRendererService = viewRendererService;
 }