Exemple #1
0
 public ContentSerializer(Type type, MongoDatabaseProvider database, IProxyFactory proxies)
 {
     this.database = database;
     classMap      = BsonClassMap.LookupClassMap(type);
     serializer    = new BsonClassMapSerializer(classMap);
     this.proxies  = proxies;
 }
 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;
 }
        private T CreateItem <T>(ItemDefinition definition, IProxyFactory proxies, MongoDatabaseProvider database) where T : ContentItem
        {
            var item = (T)(proxies.Create(typeof(T).FullName, 0)
                           ?? definition.CreateInstance(null, applyDefaultValues: false));

            services.Resolve <IDependencyInjector>().FulfilDependencies(item);
            return(item);
        }
Exemple #4
0
 public MongoDbRepository(MongoDatabaseProvider provider)
 {
     this.provider = provider;
     idGetter      = typeof(TEntity).GetProperty("ID");
 }
 public ContentClassMapFactory(IProxyFactory proxies, MongoDatabaseProvider database, IServiceContainer services)
 {
     this.proxies  = proxies;
     this.database = database;
     this.services = services;
 }
Exemple #6
0
 public MongoContentItemRepository(MongoDatabaseProvider provider)
     : base(provider)
 {
 }
Exemple #7
0
 public ContentSerializationProvider(MongoDatabaseProvider database, IProxyFactory proxies)
 {
     this.database = database;
     this.proxies  = proxies;
 }
 public RelationValueAccessorSerializer(MongoDatabaseProvider databaseProvider)
 {
     this.databaseProvider = databaseProvider;
 }
Exemple #9
0
 public ContentItemReferenceSerializer(MongoDatabaseProvider database)
 {
     this.database = database;
 }
 public ContentRelationSerializer(MongoDatabaseProvider database)
 {
     this.database = database;
 }
Exemple #11
0
 public MongoLinqQueryFacade(MongoDatabaseProvider provider)
 {
     this.provider = provider;
 }