Beispiel #1
0
        public LetterController(
            IInMemoryLetterRenderer letterRenderer,
            IFileStore fileStore,
            IShellSettings shellSettings,
            ISitesFolder sitesFolder,
            IHostingEnvironment hostEnvironment)
        {
            _letterRenderer  = letterRenderer;
            _fileStore       = fileStore;
            _sitesFolder     = sitesFolder;
            _hostEnvironment = hostEnvironment;

            _pathToImages = fileStore.Combine(hostEnvironment.ContentRootPath, shellSettings.Location, "images");
            _urlToImages  = $"/sites/{shellSettings.Location.ToLower()}/images/";
        }
Beispiel #2
0
        public LetterController(
            IInMemoryLetterRenderer letterRenderer,
            IHostingEnvironment hostEnvironment,
            IShellSettings shellSettings,
            ISitesFolder sitesFolder,
            IFileStore fileStore)
        {
            _letterRenderer = letterRenderer;
            _sitesFolder    = sitesFolder;
            _fileStore      = fileStore;

            _pathToImages = fileStore.Combine(
                hostEnvironment.ContentRootPath,
                shellSettings.Location,
                "images");
        }