当前位置: 首页>>代码示例>>C#>>正文


C# IBackOfficeRequestContext类代码示例

本文整理汇总了C#中IBackOfficeRequestContext的典型用法代码示例。如果您正苦于以下问题:C# IBackOfficeRequestContext类的具体用法?C# IBackOfficeRequestContext怎么用?C# IBackOfficeRequestContext使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IBackOfficeRequestContext类属于命名空间,在下文中一共展示了IBackOfficeRequestContext类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: MemberGroupEditorController

        public MemberGroupEditorController(IBackOfficeRequestContext requestContext) 
            : base(requestContext)
        {
            _hive = BackOfficeRequestContext.Application.Hive.GetWriter(new Uri("security://member-groups"));

            Mandate.That(_hive != null, x => new NullReferenceException("Could not find hive provider for route security://member-groups"));
        }
开发者ID:RebelCMS,项目名称:rebelcmsxu5,代码行数:7,代码来源:MemberGroupEditorController.cs

示例2: InstallController

 public InstallController(IBackOfficeRequestContext requestContext)
 {
     _requestContext = requestContext;
     //set the custom installer action invoker
     ActionInvoker = new RebelInstallActionInvoker(requestContext);
     _packageInstallUtility = new PackageInstallUtility(requestContext);
 }
开发者ID:RebelCMS,项目名称:rebelcmsxu5,代码行数:7,代码来源:InstallController.cs

示例3: InitContentEditorController

 public InitContentEditorController(IBackOfficeRequestContext requestContext)
     : base(requestContext)
 {
     m_pugpigDataSet = new PugpigDataset(new PropertyEditorFactory(), requestContext.Application.Hive.FrameworkContext, new DefaultAttributeTypeRegistry());
     Hive = requestContext.Application.Hive;
     FrameworkContext = requestContext.Application.Hive.FrameworkContext;
 }
开发者ID:aqueduct,项目名称:UmbracoPugPigConnector,代码行数:7,代码来源:ContentInstaller.cs

示例4: TemplateEditorController

 public TemplateEditorController(IBackOfficeRequestContext requestContext) : base(requestContext)
 {
     _hive = BackOfficeRequestContext
         .Application
         .Hive
         .GetWriter<IFileStore>(new Uri("storage://templates"));
 }
开发者ID:paulsuart,项目名称:rebelcmsxu5,代码行数:7,代码来源:TemplateEditorController.cs

示例5: ImplementSectionEditorController

 public ImplementSectionEditorController(IBackOfficeRequestContext requestContext) 
     : base(requestContext)
 {
     _templateStore = BackOfficeRequestContext
         .Application
         .Hive
         .GetReader<IFileStore>(new Uri("storage://templates"));
 }
开发者ID:paulsuart,项目名称:rebelcmsxu5,代码行数:8,代码来源:ImplementSectionEditorController.cs

示例6: InsertPartialEditorController

 public InsertPartialEditorController(IBackOfficeRequestContext requestContext) 
     : base(requestContext)
 {
     _partialsStore = BackOfficeRequestContext
         .Application
         .Hive
         .GetReader<IFileStore>(new Uri("storage://partials"));
 }
开发者ID:paulsuart,项目名称:rebelcmsxu5,代码行数:8,代码来源:InsertPartialEditorController.cs

示例7: StylesheetEditorController

 public StylesheetEditorController(IBackOfficeRequestContext requestContext)
     : base(requestContext)
 {
     _hive = BackOfficeRequestContext
         .Application
         .Hive
         .GetWriter<IFileStore>(new Uri("storage://stylesheets"));
 }
开发者ID:Joebeazelman,项目名称:rebelcmsxu5,代码行数:8,代码来源:StylesheetEditorController.cs

示例8: DefaultController

        /// <summary>
        /// 
        /// </summary>
        public DefaultController(IBackOfficeRequestContext requestContext)
            : base(requestContext)
        {

            _editorControllers = requestContext.RegisteredComponents.EditorControllers;
            _menuItems = requestContext.RegisteredComponents.MenuItems;
            _trees = requestContext.RegisteredComponents.TreeControllers;
        }
开发者ID:Joebeazelman,项目名称:rebelcmsxu5,代码行数:11,代码来源:DefaultController.cs

示例9: MacroPartialsEditorController

 public MacroPartialsEditorController(IBackOfficeRequestContext requestContext)
     : base(requestContext)
 {
     _hive = BackOfficeRequestContext
         .Application
         .Hive
         .GetWriter<IFileStore>(new Uri("storage://macro-partials"));
 }
开发者ID:paulsuart,项目名称:rebelcmsxu5,代码行数:8,代码来源:MacroPartialsEditorController.cs

示例10: DataTypeEditorController

 public DataTypeEditorController(
     IBackOfficeRequestContext requestContext)
     : base(requestContext)
 {
     _propertyEditors = requestContext.RegisteredComponents.PropertyEditors;
     //exclude internal ones and only include ones made for editing content
     _sortedEditors = _propertyEditors
         .Where(x => !x.Metadata.IsInternalRebelEditor && x.Metadata.IsContentPropertyEditor)
         .Select(x => x.Metadata).OrderBy(x => x.Name).ToArray();
 }
开发者ID:RebelCMS,项目名称:rebelcmsxu5,代码行数:10,代码来源:DataTypeEditorController.cs

示例11: NodeSelectorContentTreeControllerHelper

 public NodeSelectorContentTreeControllerHelper(
     Func<HiveId, FormCollection, ReadonlyGroupUnitFactory> getHiveProvider,
     Action ensureInitialized,
     Func<TypedEntity, string> getTreeNodeAlias,
     IBackOfficeRequestContext backOfficeRequestContext)
 {
     _getHiveProvider = getHiveProvider;
     _ensureInitialized = ensureInitialized;
     _getTreeNodeAlias = getTreeNodeAlias;
     _backOfficeRequestContext = backOfficeRequestContext;
 }
开发者ID:RebelCMS,项目名称:rebelcmsxu5,代码行数:11,代码来源:NodeSelectorContentTreeControllerHelper.cs

示例12: PackageInstallation

        public PackageInstallation(IBackOfficeRequestContext context, HttpContextBase httpContext, IPackage package)
        {
            _context = context;
            _package = package;
            _httpContext = httpContext;

            var packageFolderName = _context.PackageContext.LocalPathResolver.GetPackageDirectory(_package);
            var packageFolderPath = Path.Combine(_context.Application.Settings.PluginConfig.PluginsPath, "Packages", packageFolderName);
            _absolutePackagePath = _httpContext.Server.MapPath(packageFolderPath);
            _absoluteRootedPath = _httpContext.Server.MapPath("~/");

            Mandate.That(Directory.Exists(_absolutePackagePath), x => new FileNotFoundException("The package directory " + _absolutePackagePath + " could not be found"));
        }
开发者ID:paulsuart,项目名称:rebelcmsxu5,代码行数:13,代码来源:PackageInstallation.cs

示例13: PackageLogger

        public PackageLogger(IBackOfficeRequestContext context, HttpContextBase httpContext, IPackage package,
            bool autoHydrate = false)
        {
            _context = context;
            _httpContext = httpContext;
            _package = package;

            var packageFolderName = _context.PackageContext.LocalPathResolver.GetPackageDirectory(_package);
            var packageFolderPath = Path.Combine(_context.Application.Settings.PluginConfig.PluginsPath, "Packages", packageFolderName);
            var logFilePath = Path.Combine(packageFolderPath, "Log.json");
            _absoluteLogFilePath = _httpContext.Server.MapPath(logFilePath);

            _entries = new List<PackageLogEntry>();

            if(autoHydrate)
                Hydrate();
        }
开发者ID:paulsuart,项目名称:rebelcmsxu5,代码行数:17,代码来源:PackageLogger.cs

示例14: AbstractEditorController

        protected AbstractEditorController(IBackOfficeRequestContext requestContext)
            : base(requestContext)
        {
            //Locate the editor attribute
            var editorAttributes = GetType()
                .GetCustomAttributes(typeof(EditorAttribute), false)
                .OfType<EditorAttribute>();

            if (!editorAttributes.Any())
            {
                throw new InvalidOperationException("The Editor controller is missing the " + typeof(EditorAttribute).FullName + " attribute");
            }

            //assign the properties of this object to those of the metadata attribute
            var attr = editorAttributes.First();
            EditorId = attr.Id;           
        }
开发者ID:Joebeazelman,项目名称:rebelcmsxu5,代码行数:17,代码来源:AbstractEditorController.cs

示例15: TreeController

        protected TreeController(IBackOfficeRequestContext requestContext)
            : base(requestContext)
        {

            //Locate the tree attribute
            var treeAttributes = GetType()
                .GetCustomAttributes(typeof(TreeAttribute), false)
                .OfType<TreeAttribute>();

            if (!treeAttributes.Any())
            {
                throw new InvalidOperationException("The Tree controller is missing the " + typeof(TreeAttribute).FullName + " attribute");
            }

            //assign the properties of this object to those of the metadata attribute
            var attr = treeAttributes.First();
            TreeId = attr.Id;
            NodeDisplayName = attr.TreeTitle;
            NodeCollection = new TreeNodeCollection();
        }
开发者ID:paulsuart,项目名称:rebelcmsxu5,代码行数:20,代码来源:TreeController.cs


注:本文中的IBackOfficeRequestContext类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。