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


C# ContentActivator类代码示例

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


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

示例1: LanguageInterceptor

 public LanguageInterceptor(IPersister persister, ContentActivator activator, IWebContext context, ILanguageGateway gateway)
 {
     this.persister = persister;
     this.activator = activator;
     this.context = context;
     this.gateway = gateway;
 }
开发者ID:AnonymousRetard,项目名称:n2cms,代码行数:7,代码来源:LanguageInterceptor.cs

示例2: ItemXmlReader

		public ItemXmlReader(IDefinitionManager definitions, ContentActivator activator, IRepository<ContentItem> repository)
		{
			this.definitions = definitions;
			this.activator = activator;
			this.readers = DefaultReaders();
			this.repository = repository;
		}
开发者ID:meixger,项目名称:n2cms,代码行数:7,代码来源:ItemXmlReader.cs

示例3: ExternalContentRepository

 public ExternalContentRepository(ContainerRepository<ExternalItem> containerRepository, IPersister persister, ContentActivator activator, EditSection config)
 {
     this.containerRepository = containerRepository;
     this.persister = persister;
     this.activator = activator;
     externalItemType = Type.GetType(config.Externals.ExternalItemType) ?? typeof(ExternalItem);
 }
开发者ID:GrimaceOfDespair,项目名称:n2cms,代码行数:7,代码来源:ExternalContentRepository.cs

示例4: MongoInstallationManager

 public MongoInstallationManager(MongoDatabaseProvider database, IHost host, IPersister persister, ConnectionMonitor connectionContext, Importer importer, IWebContext webContext, ContentActivator activator)
     : base(connectionContext, importer, webContext, persister, activator)
 {
     this.database = database;
     this.host = host;
     this.persister = persister;
 }
开发者ID:JohnsonYuan,项目名称:n2cms,代码行数:7,代码来源:MongoInstallationManager.cs

示例5: SetUp

		public override void SetUp()
		{
			base.SetUp();

			activator = new ContentActivator(stateChanger = new N2.Edit.Workflow.StateChanger(), notifier = new ItemNotifier(), new InterceptingProxyFactory());
			activator.Initialize(new[] { new ItemDefinition(typeof(Definitions.PersistableItem)), new ItemDefinition(typeof(Definitions.PersistableItem1b)) });
		}
开发者ID:meixger,项目名称:n2cms,代码行数:7,代码来源:ContentActivatorTests.cs

示例6: SetUp

 public void SetUp()
 {
     var changer = new N2.Edit.Workflow.StateChanger();
     var activator = new ContentActivator(changer, MockRepository.GenerateStrictMock<IItemNotifier>(), new EmptyProxyFactory());
     DefinitionBuilder builder = new DefinitionBuilder(new DefinitionMap(), new Fakes.FakeTypeFinder(typeof(RestrictsChildWithCardinality), typeof(ChildWithCardinality)), new TransformerBase<IUniquelyNamed>[0], new EngineSection { Definitions = new DefinitionCollection { DefineUnattributedTypes = true } });
     definitions = new DefinitionManager(new[] { new DefinitionProvider(builder) }, new ITemplateProvider[0], activator, changer);
 }
开发者ID:GrimaceOfDespair,项目名称:n2cms,代码行数:7,代码来源:RestrictCardinalityTests.cs

示例7: XmlInstallationManager

		public XmlInstallationManager(IHost host, IPersister persister, XmlContentRepository repository, ConnectionMonitor connectionContext, Importer importer, IWebContext webContext, ContentActivator activator)
            : base(connectionContext, importer, webContext, persister, activator)
        {
            this.host = host;
            this.persister = persister;
			this.repository = repository;
        }
开发者ID:Biswo,项目名称:n2cms,代码行数:7,代码来源:XmlInstallationManager.cs

示例8: SetUp

        public override void SetUp()
        {
            base.SetUp();

            finder = new FakeTypeFinder(typeof(XmlableItem).Assembly, typeof(XmlableItem), typeof(XmlableItem2));
            notifier = mocks.Stub<IItemNotifier>();
            mocks.Replay(notifier);

            activator = new ContentActivator(new N2.Edit.Workflow.StateChanger(), notifier, new InterceptingProxyFactory());
            definitions = new DefinitionManager(
                new[] {new DefinitionProvider(new DefinitionBuilder(new DefinitionMap(), 
                    finder, 
                    new TransformerBase<IUniquelyNamed>[0],
                    TestSupport.SetupEngineSection()))}, 
                activator, new StateChanger(), new DefinitionMap());
            definitions.Start();
            parser = mocks.StrictMock<IUrlParser>();
            Expect.On(parser)
                .Call(parser.BuildUrl(null))
                .IgnoreArguments()
                .Do(new BuildUrl(delegate(ContentItem itemToBuild)
                                    {
                                        string url = "/" + itemToBuild.Name + ".aspx";
                                        foreach (ContentItem parent in Find.EnumerateParents(itemToBuild, null))
                                        {
                                            if (parent.Parent != null)
                                                url = "/" + parent.Name + url;
                                        }
                                        return url.ToUrl();
                                    }))
                .Repeat.Any();
            mocks.Replay(parser);

            persister = TestSupport.SetupFakePersister();
        }
开发者ID:brianmatic,项目名称:n2cms,代码行数:35,代码来源:SerializationTestsBase.cs

示例9: CreateUrlProvider

 public CreateUrlProvider(IPersister persister, IEditUrlManager editUrlManager, IDefinitionManager definitions, ContentActivator activator, Navigator navigator)
 {
     this.persister = persister;
     this.managementPaths = editUrlManager;
     this.definitions = definitions;
     this.activator = activator;
     this.navigator = navigator;
 }
开发者ID:amarwadi,项目名称:n2cms,代码行数:8,代码来源:CreateUrlProvider.cs

示例10: InstallationManager

		public InstallationManager(ConnectionMonitor connectionContext, Importer importer, IWebContext webContext, IPersister persister, ContentActivator activator)
		{
			this.connectionContext = connectionContext;
			this.importer = importer;
			this.webContext = webContext;
			this.persister = persister;
			this.activator = activator;
		}
开发者ID:grbbod,项目名称:drconnect-jungo,代码行数:8,代码来源:InstallationManager.cs

示例11: SecurityEnforcer

 public SecurityEnforcer(Persistence.IPersister persister, ISecurityManager security, ContentActivator activator, Web.IUrlParser urlParser, Web.IWebContext webContext)
 {
     this.webContext = webContext;
     this.persister = persister;
     this.security = security;
     this.activator = activator;
     this.urlParser = urlParser;
 }
开发者ID:Jobu,项目名称:n2cms,代码行数:8,代码来源:SecurityEnforcer.cs

示例12: ItemXmlReader

		public ItemXmlReader(IDefinitionManager definitions, ContentActivator activator)
		{
			if (definitions == null)
				throw new ArgumentNullException("definitions");

			this.definitions = definitions;
			this.activator = activator;
			this.readers = DefaultReaders();
		}
开发者ID:JohnsonYuan,项目名称:n2cms,代码行数:9,代码来源:ItemXmlReader.cs

示例13: SecurityEnforcer

 public SecurityEnforcer(Persistence.IPersister persister, ISecurityManager security, ContentActivator activator, Web.IUrlParser urlParser, Web.IWebContext webContext, Configuration.HostSection config)
 {
     this.webContext = webContext;
     this.persister = persister;
     this.security = security;
     this.activator = activator;
     this.urlParser = urlParser;
     this.permissionDeniedHttpCode = config.Web.PermissionDeniedHttpCode;
 }
开发者ID:brianmatic,项目名称:n2cms,代码行数:9,代码来源:SecurityEnforcer.cs

示例14: CreateUrlProvider

 public CreateUrlProvider(IPersister persister, IEditUrlManager editUrlManager, IDefinitionManager definitions, ITemplateProvider[] templates, ContentActivator activator, AjaxRequestDispatcher dispatcher, Navigator navigator)
     : base(dispatcher)
 {
     this.persister = persister;
     this.managementPaths = editUrlManager;
     this.definitions = definitions;
     this.templates = templates;
     this.activator = activator;
     this.navigator = navigator;
 }
开发者ID:joaohortencio,项目名称:n2cms,代码行数:10,代码来源:CreateUrlProvider.cs

示例15: ViewTemplateProvider

        public ViewTemplateProvider(ViewTemplateRegistrator registrator, ViewTemplateAnalyzer analyzer, ContentActivator activator, DefinitionBuilder builder, IProvider<HttpContextBase> httpContextProvider, IProvider<VirtualPathProvider> vppProvider)
        {
            this.registrator = registrator;
            this.analyzer = analyzer;
            this.activator = activator;
            this.builder = builder;
            this.httpContextProvider = httpContextProvider;
            this.vppProvider = vppProvider;

            registrator.RegistrationAdded += (s, a) => rebuild = true;
        }
开发者ID:AnonymousRetard,项目名称:n2cms,代码行数:11,代码来源:ViewTemplateProvider.cs


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