public MediaManagerController(IPostService postService, IPostImageService postImageService, IImageService imageService, IFontService fontService)
 {
     _postService      = postService;
     _postImageService = postImageService;
     _imageService     = imageService;
     _fontService      = fontService;
 }
Exemple #2
0
 public PostImageCommandHandler(
     IDefaultDbContext context,
     IPostImageService postService
     )
 {
     Context     = context;
     PostService = postService;
 }
 public BlogManagerController(IPostService postService, IPostImageService postImageService, IImageService imageService, IPostCategoryService postCategoryService, IUserService userService, IRoleService roleService)
 {
     _postService         = postService;
     _postImageService    = postImageService;
     _imageService        = imageService;
     _postCategoryService = postCategoryService;
     _userService         = userService;
     _roleService         = roleService;
 }
Exemple #4
0
        public PostController(IPostService postService,
                              IOptions <CloudinarySettings> options, IPostCommentService postCommentService,
                              IPostImageService postImageService, IPostVideoService postVideoService, UserManager <AppUser> userManager, IUserService userService)
        {
            _postService        = postService;
            _options            = options;
            _postImageService   = postImageService;
            _postVideoService   = postVideoService;
            _postCommentService = postCommentService;
            _userManager        = userManager;
            _userService        = userService;

            Account account = new Account(
                _options.Value.CloudName,
                _options.Value.ApiKey,
                _options.Value.ApiSecret);

            _cloudinary = new Cloudinary(account);
        }
Exemple #5
0
 public PostController(IErrorService errorService, IPostService postService, IPostImageService postImageService) : base(errorService)
 {
     this._postService      = postService;
     this._postImageService = postImageService;
 }