コード例 #1
0
        public MailingService(ISettings settings, ApplicationDbContext context, IHostingEnvironment hostingEnvironment,
                              IWish wishManager)
        {
            _settings   = settings;
            _appContext = context;
            string webRoot = hostingEnvironment.WebRootPath;

            _wishManager = wishManager;

            _pathVideoContentHtml     = Path.Combine(webRoot, "mail", "videoContent.html");
            _pathMailContentHtml      = Path.Combine(webRoot, "mail", "mailContent.html");
            _pathSerieContentHtml     = Path.Combine(webRoot, "mail", "serieContent.html");
            _pathWishMovieContentHtml = Path.Combine(webRoot, "mail", "wishMovieContent.html");
        }
コード例 #2
0
 public HomeController()
 {
     _adapter = new WishAdapter();
 }
コード例 #3
0
 public WishController()
 {
     _adapter = new WishAdapter();
 }