Esempio n. 1
0
        public ThemeLoader(
            IHostingEnvironment hostingEnvironment,
            IOptions <ThemeOptions> themeOptions,
            IThemeLocator themeLocator,
            IPlatoFileSystem platoFileSystem)
        {
            _themeLocator = themeLocator;

            var contentRootPath           = hostingEnvironment.ContentRootPath;
            var virtualPathToThemesFolder = themeOptions.Value.VirtualPathToThemesFolder;

            RootPath = platoFileSystem.Combine(
                contentRootPath,
                virtualPathToThemesFolder);

            InitializeThemes();
        }
Esempio n. 2
0
        public SiteThemeLoader(
            IOptions <ThemeOptions> themeOptions,
            IPlatoFileSystem platoFilesystem,
            IShellSettings shellSettings,
            IThemeLocator themeLocator,
            ISitesFolder sitesFolder)
        {
            _platoFileSystem = platoFilesystem;
            _themeLocator    = themeLocator;

            RootPath = platoFilesystem.Combine(
                sitesFolder.RootPath,
                shellSettings.Location,
                themeOptions.Value.VirtualPathToThemesFolder?.ToLower());;

            InitializeThemes();
        }
Esempio n. 3
0
 protected BbCodeBaseConverter(IChatState chatState, IThemeLocator locator)
 {
     characters = chatState.CharacterManager;
     Locator    = locator;
     ChatModel  = chatState.ChatModel;
 }
Esempio n. 4
0
 public ForegroundBrushConverter(IChatModel cm, IThemeLocator locator)
 {
     this.cm      = cm;
     this.locator = locator;
 }
 public ForegroundBrushConverter(IChatModel cm, IThemeLocator locator)
 {
     this.cm = cm;
     this.locator = locator;
 }
Esempio n. 6
0
 public BbCodePostConverter(IChatState chatState, IThemeLocator locator)
     : base(chatState, locator)
 {
 }
Esempio n. 7
0
 public BbCodeConverter(IChatState chatState, IThemeLocator locator)
     : base(chatState, locator)
 {
 }
Esempio n. 8
0
 public BbFlowConverter(IChatModel chatModel, ICharacterManager characterManager, IThemeLocator locator,
     IPermissionService permissions)
     : base(chatModel, characterManager, locator)
 {
     this.permissions = permissions;
 }
Esempio n. 9
0
 public BbCodePostConverter(IChatModel chatModel, ICharacterManager characterManager, IThemeLocator locator)
     : base(chatModel, characterManager, locator)
 {
 }
Esempio n. 10
0
 protected BbCodeBaseConverter(IChatModel chatModel, ICharacterManager characterManager, IThemeLocator locator)
 {
     this.characterManager = characterManager;
     Locator = locator;
     ChatModel = chatModel;
 }
Esempio n. 11
0
 public BbFlowConverter(IChatState chatState, IThemeLocator locator,
     IGetPermissions permissions)
     : base(chatState, locator)
 {
     this.permissions = permissions;
 }
Esempio n. 12
0
 protected BbCodeBaseConverter(IChatState chatState, IThemeLocator locator)
 {
     characters = chatState.CharacterManager;
     Locator = locator;
     ChatModel = chatState.ChatModel;
 }
Esempio n. 13
0
 public BbFlowConverter(IChatState chatState, IThemeLocator locator,
                        IGetPermissions permissions)
     : base(chatState, locator)
 {
     this.permissions = permissions;
 }