示例#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();
        }
示例#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();
        }
示例#3
0
 protected BbCodeBaseConverter(IChatState chatState, IThemeLocator locator)
 {
     characters = chatState.CharacterManager;
     Locator    = locator;
     ChatModel  = chatState.ChatModel;
 }
示例#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;
 }
示例#6
0
 public BbCodePostConverter(IChatState chatState, IThemeLocator locator)
     : base(chatState, locator)
 {
 }
示例#7
0
 public BbCodeConverter(IChatState chatState, IThemeLocator locator)
     : base(chatState, locator)
 {
 }
示例#8
0
 public BbFlowConverter(IChatModel chatModel, ICharacterManager characterManager, IThemeLocator locator,
     IPermissionService permissions)
     : base(chatModel, characterManager, locator)
 {
     this.permissions = permissions;
 }
示例#9
0
 public BbCodePostConverter(IChatModel chatModel, ICharacterManager characterManager, IThemeLocator locator)
     : base(chatModel, characterManager, locator)
 {
 }
示例#10
0
 protected BbCodeBaseConverter(IChatModel chatModel, ICharacterManager characterManager, IThemeLocator locator)
 {
     this.characterManager = characterManager;
     Locator = locator;
     ChatModel = chatModel;
 }
示例#11
0
 public BbFlowConverter(IChatState chatState, IThemeLocator locator,
     IGetPermissions permissions)
     : base(chatState, locator)
 {
     this.permissions = permissions;
 }
示例#12
0
 protected BbCodeBaseConverter(IChatState chatState, IThemeLocator locator)
 {
     characters = chatState.CharacterManager;
     Locator = locator;
     ChatModel = chatState.ChatModel;
 }
示例#13
0
 public BbFlowConverter(IChatState chatState, IThemeLocator locator,
                        IGetPermissions permissions)
     : base(chatState, locator)
 {
     this.permissions = permissions;
 }