本文整理汇总了C#中IFrameworkContext类的典型用法代码示例。如果您正苦于以下问题:C# IFrameworkContext类的具体用法?C# IFrameworkContext怎么用?C# IFrameworkContext使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IFrameworkContext类属于命名空间,在下文中一共展示了IFrameworkContext类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: EnsureCoreDataTask
public EnsureCoreDataTask(IFrameworkContext context, IHiveManager coreManager, IEnumerable<Lazy<Permission, PermissionMetadata>> permissions,
ISecurityService securityService)
: base(context, coreManager)
{
_permissions = permissions;
_securityService = securityService;
}
示例2: ProviderBootstrapper
/// <summary>
/// Initializes a new instance of the <see cref="ProviderBootstrapper"/> class if sufficient configuration information has been supplied by the user.
/// </summary>
/// <param name="existingConfig">The existing config.</param>
/// <param name="frameworkContext"></param>
/// <remarks></remarks>
public ProviderBootstrapper(ProviderConfigurationSection existingConfig, IFrameworkContext frameworkContext)
{
_existingConfig = existingConfig;
_frameworkContext = frameworkContext;
}
示例3: InitDataTypes
/// <summary>
/// Creates the test data types
/// </summary>
public List<DataType> InitDataTypes(IFrameworkContext frameworkContext)
{
// much neater :)
_dataTypes = CoreFakeCmsData.RequiredCoreUserAttributeTypes()
.Select(x => frameworkContext.TypeMappers.Map<DataType>(x))
.ToList();
//_dataTypes = new List<DataType>();
//foreach (var v in CoreCmsData.RequiredCoreUserAttributeTypes())
//{
// var a = frameworkContext.TypeMappers.Map<DataType>(v);
// _dataTypes.Add(a);
//}
//get the data types from the CoreCmsData
//var dataTypes = new List<DataType>()
// {
// frameworkContext.TypeMappers.Map<DataType>(CoreCmsData.RequiredCoreUserAttributeTypes().Single(x => x.Id == new HiveId("rte-pe".EncodeAsGuid()))),
// frameworkContext.TypeMappers.Map<DataType>(CoreCmsData.RequiredCoreUserAttributeTypes().Single(x => x.Id == new HiveId("sltb-pe".EncodeAsGuid()))),
// frameworkContext.TypeMappers.Map<DataType>(CoreCmsData.RequiredCoreUserAttributeTypes().Single(x => x.Id == new HiveId("csp-pe".EncodeAsGuid()))),
// frameworkContext.TypeMappers.Map<DataType>(CoreCmsData.RequiredCoreUserAttributeTypes().Single(x => x.Id == new HiveId("tag-pe".EncodeAsGuid()))),
// frameworkContext.TypeMappers.Map<DataType>(CoreCmsData.RequiredCoreUserAttributeTypes().Single(x => x.Id == new HiveId("mltb-pe".EncodeAsGuid()))),
// frameworkContext.TypeMappers.Map<DataType>(CoreCmsData.RequiredCoreUserAttributeTypes().Single(x => x.Id == new HiveId("media-picker-pe".EncodeAsGuid()))),
// frameworkContext.TypeMappers.Map<DataType>(CoreCmsData.RequiredCoreUserAttributeTypes().Single(x => x.Id == new HiveId("integer-pe".EncodeAsGuid()))),
// frameworkContext.TypeMappers.Map<DataType>(CoreCmsData.RequiredCoreUserAttributeTypes().Single(x => x.Id == new HiveId("uploader-pe".EncodeAsGuid())))
// };
//_dataTypes = dataTypes;
LogHelper.Error<UmbracoXmlImportHelper>(String.Format("There were {0} data types found", _dataTypes.Count), new Exception());
return _dataTypes;
}
示例4: EntityRepositoryFactory
//public EntityRepositoryFactory(ProviderMetadata providerMetadata,
// ProviderRevisionSessionFactory<TypedEntity> revisionRepositoryFactory,
// ProviderSchemaSessionFactory schemaRepositoryFactory,
// IFrameworkContext frameworkContext, global::NHibernate.Cfg.Configuration nhConfig)
// : base(providerMetadata, revisionRepositoryFactory, schemaRepositoryFactory, frameworkContext)
//{
// Helper = new NhFactoryHelper(nhConfig, null, false, false, frameworkContext);
//}
public EntityRepositoryFactory(ProviderMetadata providerMetadata,
AbstractRevisionRepositoryFactory<TypedEntity> revisionRepositoryFactory,
AbstractSchemaRepositoryFactory schemaRepositoryFactory,
IFrameworkContext frameworkContext, ProviderDependencyHelper dependencyHelper)
: base(providerMetadata, revisionRepositoryFactory, schemaRepositoryFactory, frameworkContext, dependencyHelper)
{
}
示例5: ProviderSetup
public ProviderSetup(ProviderUnitFactory unitFactory, ProviderMetadata providerMetadata, IFrameworkContext frameworkContext, AbstractProviderBootstrapper bootstrapper, int priorityOrdinal)
: base(providerMetadata, frameworkContext, bootstrapper, priorityOrdinal)
{
Mandate.ParameterNotNull(unitFactory, "unitFactory");
UnitFactory = unitFactory;
}
示例6: ReadonlyProviderSetup
protected ReadonlyProviderSetup(ProviderMetadata providerMetadata, IFrameworkContext frameworkContext, AbstractProviderBootstrapper bootstrapper, int priorityOrdinal)
: base(providerMetadata, frameworkContext, bootstrapper, priorityOrdinal)
{
Mandate.ParameterNotNull(frameworkContext, "frameworkContext");
Mandate.ParameterNotNull(bootstrapper, "bootstrapper");
Mandate.ParameterNotNull(providerMetadata, "providerMetadata");
}
示例7: IndexController
public IndexController(IndexConfiguration configuration, IFrameworkContext frameworkContext)
{
Configuration = configuration;
FrameworkContext = frameworkContext;
_manualResetter = new ManualResetEvent(false);
Queue = new IndexModificationQueue();
}
示例8: EntityRepositoryFactory
internal EntityRepositoryFactory(ProviderMetadata providerMetadata,
AbstractRevisionRepositoryFactory<TypedEntity> revisionRepositoryFactory,
AbstractSchemaRepositoryFactory schemaRepositoryFactory, Settings settings,
IFrameworkContext frameworkContext)
: base(providerMetadata, revisionRepositoryFactory, schemaRepositoryFactory, frameworkContext, new DependencyHelper(settings, providerMetadata))
{
}
示例9: AbstractProviderSetup
public AbstractProviderSetup(ProviderMetadata providerMetadata, IFrameworkContext frameworkContext, AbstractProviderBootstrapper bootstrapper, int priorityOrdinal)
{
ProviderMetadata = providerMetadata;
FrameworkContext = frameworkContext;
Bootstrapper = bootstrapper;
PriorityOrdinal = priorityOrdinal;
}
示例10: SchemaRepositoryFactory
/// <summary>
/// Constructor used for testing
/// </summary>
/// <param name="providerMetadata"></param>
/// <param name="revisionRepositoryFactory"></param>
/// <param name="frameworkContext"></param>
/// <param name="helper"></param>
internal SchemaRepositoryFactory(
ProviderMetadata providerMetadata,
AbstractRevisionRepositoryFactory<EntitySchema> revisionRepositoryFactory,
IFrameworkContext frameworkContext,
ExamineHelper helper)
: base(providerMetadata, revisionRepositoryFactory, frameworkContext, new DependencyHelper(helper, providerMetadata))
{
}
示例11: NhFactoryHelper
public NhFactoryHelper(Configuration config, ISession singleProvidedSession, bool leaveSessionOpenOnDispose, bool isSingleSessionFinalized, IFrameworkContext frameworkContext)
{
Config = config;
SingleProvidedSession = singleProvidedSession;
LeaveSessionOpenOnDispose = leaveSessionOpenOnDispose;
IsSingleSessionFinalized = isSingleSessionFinalized;
FrameworkContext = frameworkContext;
}
示例12: DevDatasetInstallTask
public DevDatasetInstallTask(
IFrameworkContext frameworkContext,
IPropertyEditorFactory propertyEditorFactory,
IHiveManager hiveManager,
IAttributeTypeRegistry attributeTypeRegistry)
: base(frameworkContext, hiveManager)
{
_devDataSet = new DevDataset(propertyEditorFactory, frameworkContext, attributeTypeRegistry);
}
示例13: AbstractProviderRepository
protected AbstractProviderRepository(ProviderMetadata providerMetadata, IFrameworkContext frameworkContext)
{
CanRead = true;
ProviderMetadata = providerMetadata;
FrameworkContext = frameworkContext;
RepositoryScopedCache = new DictionaryScopedCache();
//HiveContext = new RepositoryContext(RuntimeCacheProvider.Default, PerHttpRequestCacheProvider.Default, frameworkContext);
}
示例14: PublicAccessService
public PublicAccessService(IHiveManager hive, IMembershipService<Member> membersMembershipService,
IFrameworkContext framework)
{
Mandate.That<NullReferenceException>(hive != null);
Mandate.That<NullReferenceException>(membersMembershipService != null);
_hive = hive;
_members = membersMembershipService;
_framework = framework;
}
示例15: ProviderMappingGroup
public ProviderMappingGroup(string key,
WildcardUriMatch singleMatch,
ReadonlyProviderSetup singleReader,
ProviderSetup singleWriter,
IFrameworkContext frameworkContext)
: this(key, Enumerable.Repeat(singleMatch, 1), Enumerable.Repeat(singleReader, 1), Enumerable.Repeat(singleWriter, 1), frameworkContext)
{
Mandate.ParameterNotNull(singleReader, "singleReader");
Mandate.ParameterNotNull(singleWriter, "singleWriter");
}