Ejemplo n.º 1
0
 public BlogController(ILogger <BlogController> logger, IPostService postService, IPageService pageService, ICategoryService categoryService, ITagsService tagsService, ICommentService commentService, IPostFactory postFactory, IPageFactory pageFactory, ICategoryFactory categoryFactory, ITagsFactory tagsFactory, BlogUserManager blogUserManager, IUserFactory userFactory, CommentsSettings commentsSettings, ICaptchaService captchaService, IHttpContextAccessor httpContextAccessor, IIPAddressService iPAddressService, IEmailSender emailSender, IJsonSerializer jsonSerializer, IStringLocalizer <BlogController> stringLocalizer, ISpamService spamService, IEventBus eventBus, BasicSettings basicSettings, IDistributedCache distributedCache)
 {
     _logger              = logger;
     _postService         = postService;
     _pageService         = pageService;
     _categoryService     = categoryService;
     _tagsService         = tagsService;
     _commentService      = commentService;
     _postFactory         = postFactory;
     _pageFactory         = pageFactory;
     _categoryFactory     = categoryFactory;
     _tagsFactory         = tagsFactory;
     _blogUserManager     = blogUserManager;
     _userFactory         = userFactory;
     _commentsSettings    = commentsSettings;
     _captchaService      = captchaService;
     _httpContextAccessor = httpContextAccessor;
     _iPAddressService    = iPAddressService;
     _emailSender         = emailSender;
     _jsonSerializer      = jsonSerializer;
     _stringLocalizer     = stringLocalizer;
     _spamService         = spamService;
     _eventBus            = eventBus;
     _basicSettings       = basicSettings;
     _distributedCache    = distributedCache;
 }
 public CommentController(ICommentService commentService, ICommentFactory commentFactory, BlogUserManager userManager, IHttpContextAccessor httpContextAccessor, IGuidGenerator guidGenerator, IIPAddressService iPAddressService)
 {
     _commentService      = commentService;
     _commentFactory      = commentFactory;
     _userManager         = userManager;
     _httpContextAccessor = httpContextAccessor;
     _guidGenerator       = guidGenerator;
     _iPAddressService    = iPAddressService;
 }
Ejemplo n.º 3
0
 public BlogMLImporter(ILogger <BlogMLImporter> logger, IPostService postService, IPageService pageService, ICategoryService categoryService, ITagsService tagsService, ICommentService commentService, IIPAddressService iPAddressService, ISlugService slugService)
 {
     _logger           = logger;
     _postService      = postService;
     _pageService      = pageService;
     _categoryService  = categoryService;
     _tagsService      = tagsService;
     _commentService   = commentService;
     _iPAddressService = iPAddressService;
     _slugService      = slugService;
 }
Ejemplo n.º 4
0
 public WeatherController(IMemoryCache memoryCache, IIPAddressService iIPAddressService)
 {
     _cache = memoryCache;
     this.iIPAddressService = iIPAddressService;
 }