Beispiel #1
0
 public PostService(ApplicationDbContext db, UserManager <ApplicationUser> userManager)
     : base(userManager, db)
 {
     this.db             = db;
     this.userManager    = userManager;
     this.cyclicActivity = new AddCyclicActivity(this.db);
 }
Beispiel #2
0
 public PostService(
     ApplicationDbContext db,
     IHubContext <NotificationHub> notificationHubContext,
     INotificationService notificationService,
     IMapper mapper)
 {
     this.db = db;
     this.notificationHubContext = notificationHubContext;
     this.notificationService    = notificationService;
     this.mapper         = mapper;
     this.cyclicActivity = new AddCyclicActivity(this.db);
 }
Beispiel #3
0
 public PostService(
     ApplicationDbContext db,
     UserManager <ApplicationUser> userManager,
     IHubContext <NotificationHub> notificationHubContext,
     INotificationService notificationService)
     : base(userManager, db)
 {
     this.db                     = db;
     this.userManager            = userManager;
     this.notificationHubContext = notificationHubContext;
     this.notificationService    = notificationService;
     this.cyclicActivity         = new AddCyclicActivity(this.db);
 }
Beispiel #4
0
 public BlogService(
     ApplicationDbContext db,
     Cloudinary cloudinary,
     UserManager <ApplicationUser> userManager)
     : base(userManager, db)
 {
     this.db                = db;
     this.cloudinary        = cloudinary;
     this.userManager       = userManager;
     this.postExtractor     = new GlobalPostsExtractor(this.db);
     this.cyclicActivity    = new AddCyclicActivity(this.db);
     this.nonCyclicActivity = new AddNonCyclicActivity(this.db);
 }
Beispiel #5
0
 public BlogService(
     ApplicationDbContext db,
     Cloudinary cloudinary,
     UserManager <ApplicationUser> userManager,
     RoleManager <ApplicationRole> roleManager,
     INotificationService notificationService,
     IHubContext <NotificationHub> notificationHubContext,
     IMapper mapper)
 {
     this.db                     = db;
     this.cloudinary             = cloudinary;
     this.userManager            = userManager;
     this.roleManager            = roleManager;
     this.notificationService    = notificationService;
     this.notificationHubContext = notificationHubContext;
     this.mapper                 = mapper;
     this.cyclicActivity         = new AddCyclicActivity(this.db);
     this.nonCyclicActivity      = new AddNonCyclicActivity(this.db);
 }