本文整理汇总了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"));
}
示例2: InstallController
public InstallController(IBackOfficeRequestContext requestContext)
{
_requestContext = requestContext;
//set the custom installer action invoker
ActionInvoker = new RebelInstallActionInvoker(requestContext);
_packageInstallUtility = new PackageInstallUtility(requestContext);
}
示例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;
}
示例4: TemplateEditorController
public TemplateEditorController(IBackOfficeRequestContext requestContext) : base(requestContext)
{
_hive = BackOfficeRequestContext
.Application
.Hive
.GetWriter<IFileStore>(new Uri("storage://templates"));
}
示例5: ImplementSectionEditorController
public ImplementSectionEditorController(IBackOfficeRequestContext requestContext)
: base(requestContext)
{
_templateStore = BackOfficeRequestContext
.Application
.Hive
.GetReader<IFileStore>(new Uri("storage://templates"));
}
示例6: InsertPartialEditorController
public InsertPartialEditorController(IBackOfficeRequestContext requestContext)
: base(requestContext)
{
_partialsStore = BackOfficeRequestContext
.Application
.Hive
.GetReader<IFileStore>(new Uri("storage://partials"));
}
示例7: StylesheetEditorController
public StylesheetEditorController(IBackOfficeRequestContext requestContext)
: base(requestContext)
{
_hive = BackOfficeRequestContext
.Application
.Hive
.GetWriter<IFileStore>(new Uri("storage://stylesheets"));
}
示例8: DefaultController
/// <summary>
///
/// </summary>
public DefaultController(IBackOfficeRequestContext requestContext)
: base(requestContext)
{
_editorControllers = requestContext.RegisteredComponents.EditorControllers;
_menuItems = requestContext.RegisteredComponents.MenuItems;
_trees = requestContext.RegisteredComponents.TreeControllers;
}
示例9: MacroPartialsEditorController
public MacroPartialsEditorController(IBackOfficeRequestContext requestContext)
: base(requestContext)
{
_hive = BackOfficeRequestContext
.Application
.Hive
.GetWriter<IFileStore>(new Uri("storage://macro-partials"));
}
示例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();
}
示例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;
}
示例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"));
}
示例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();
}
示例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;
}
示例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();
}