/// <summary> /// Default constructor. /// </summary> /// <param name="api">The current api</param> public PostController(IApi api, PostEditService editService, IContentServiceFactory factory) : base(api) { this.editService = editService; this.contentService = factory.CreatePostService(); }
/// <summary> /// Default constructor. /// </summary> /// <param name="api">The current api</param> public PostController(IApi api, PostEditService editService, IContentServiceFactory factory, IHubContext <Hubs.PreviewHub> hub) : base(api) { this.editService = editService; this.contentService = factory.CreatePostService(); _hub = hub; }
/// <summary> /// Default constructor. /// </summary> /// <param name="api">The current api</param> public PostController(IApi api, PostEditService editService, IContentFactory factory, IHubContext <Hubs.PreviewHub> hub) : base(api) { _editService = editService; _factory = factory; _hub = hub; }