コード例 #1
0
        public SponsorLogoController(IWebHostEnvironment hostingEnvironment, ISponsorLogoService logoService)
        {
            hostEnvironment = hostingEnvironment;
            service         = logoService;
            string webRoot = hostEnvironment.WebRootPath;

            service.SetLogoDirectoryPath(webRoot);
        }
コード例 #2
0
        public SponsorController(IViewModelQuery <IEnumerable <SponsorModel> > sponsorsQuery, ISponsorLogoService sponsorLogoService)
        {
            if (sponsorsQuery == null)
            {
                throw new ArgumentNullException("sponsorsQuery");
            }

            if (sponsorLogoService == null)
            {
                throw new ArgumentNullException("sponsorLogoService");
            }

            this.sponsorsQuery      = sponsorsQuery;
            this.sponsorLogoService = sponsorLogoService;
        }
コード例 #3
0
        public SponsorController(IViewModelQuery<IEnumerable<SponsorModel>> sponsorsQuery, ISponsorLogoService sponsorLogoService)
        {
            if (sponsorsQuery == null)
            {
                throw new ArgumentNullException("sponsorsQuery");
            }

            if (sponsorLogoService == null)
            {
                throw new ArgumentNullException("sponsorLogoService");
            }

            this.sponsorsQuery = sponsorsQuery;
            this.sponsorLogoService = sponsorLogoService;
        }