Esempio n. 1
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="api">The current api</param>
 /// <param name="editService">The current page edit service</param>
 /// <param name="factory">The content service factory</param>
 public PageController(IApi api, PageEditService editService, IContentFactory factory, IHubContext <Hubs.PreviewHub> hub) : base(api)
 {
     _editService = editService;
     _factory     = factory;
     _hub         = hub;
 }
Esempio n. 2
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="api">The current api</param>
 /// <param name="editService">The current page edit service</param>
 /// <param name="factory">The content service factory</param>
 public PageController(IApi api, PageEditService editService, IContentServiceFactory factory) : base(api)
 {
     this.editService    = editService;
     this.contentService = factory.CreatePageService();
 }
Esempio n. 3
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="api">The current api</param>
 /// <param name="editService">The current page edit service</param>
 /// <param name="factory">The content service factory</param>
 public PageController(IApi api, PageEditService editService, IContentServiceFactory factory, IHubContext <Hubs.PreviewHub> hub) : base(api)
 {
     this.editService    = editService;
     this.contentService = factory.CreatePageService();
     _hub = hub;
 }