Ejemplo n.º 1
0
 public OptionsController(IOptionsSnapshot <AboutUsPageInfo> aboutUsPageInfo, IWritableOptions <AboutUsPageInfo> aboutUsPageInfoWriter, IToastNotification toastNotification, IOptionsSnapshot <WebsiteInfo> websiteInfo, IWritableOptions <WebsiteInfo> websiteInfoWriter, IOptionsSnapshot <SmtpSettings> smtpSettings, IWritableOptions <SmtpSettings> smtpSettingsWriter, IOptionsSnapshot <ArticleRightSideBarWidgetOptions> articleRightSideBarWidgetOptions, IWritableOptions <ArticleRightSideBarWidgetOptions> articleRightSideBarWidgetOptionsWriter, ICategoryService categoryService, IMapper mapper)
 {
     _aboutUsPageInfoWriter                  = aboutUsPageInfoWriter;
     _toastNotification                      = toastNotification;
     _aboutUsPageInfo                        = aboutUsPageInfo.Value;
     _websiteInfoWriter                      = websiteInfoWriter;
     _smtpSettingsWriter                     = smtpSettingsWriter;
     _smtpSettings                           = smtpSettings.Value;
     _websiteInfo                            = websiteInfo.Value;
     _articleRightSideBarWidgetOptions       = articleRightSideBarWidgetOptions.Value;
     _articleRightSideBarWidgetOptionsWriter = articleRightSideBarWidgetOptionsWriter;
     _categoryService                        = categoryService;
     _mapper = mapper;
 }
Ejemplo n.º 2
0
 public ArticleController(IArticleService articleService, IOptionsSnapshot <ArticleRightSideBarWidgetOptions> articleRightSideBarWidgetOptions)
 {
     _articleService = articleService;
     _articleRightSideBarWidgetOptions = articleRightSideBarWidgetOptions.Value;
 }