Ejemplo n.º 1
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="db">The current db context</param>
 /// <param name="factory">The content service factory</param>
 public SiteRepository(IDb db, IContentServiceFactory factory)
 {
     _db             = db;
     _contentService = factory.CreateSiteService();
 }
 public SiteContentEditService(IApi api, IContentServiceFactory factory)
 {
     this.api = api;
     service  = factory.CreateSiteService();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="api">The current api</param>
 public SiteController(IApi api, SiteContentEditService service, IContentServiceFactory factory) : base(api)
 {
     _service        = service;
     _contentService = factory.CreateSiteService();
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="api">The current api</param>
 /// <param name="db">The current db context</param>
 /// <param name="factory">The content service factory</param>
 /// <param name="cache">The optional model cache</param>
 public SiteRepository(Api api, IDb db, IContentServiceFactory factory, ICache cache = null)
     : base(db, cache)
 {
     this.api            = api;
     this.contentService = factory.CreateSiteService();
 }
Ejemplo n.º 5
0
 public SiteRepository(ISessionFactory sessionFactory, IContentServiceFactory factory) : base(sessionFactory)
 {
     _contentService = factory.CreateSiteService();
 }