Example #1
0
 public RegistrationController(FitnessDbContext db, JwtService jwtService, IHubContext <ChatHub> context)
 {
     this.db            = db;
     this.jwtService    = jwtService;
     this.context       = context;
     this.cookieOptions = new CookieOptions()
     {
         HttpOnly = true,
         SameSite = SameSiteMode.None,
         Secure   = true
     };
 }
 public AdminController(
     IUserData userData,
     UserManager <User> userManager, IHostingEnvironment hostingEnvironment,
     ISize reposSize, IBrand reposBrand,
     IShipper reposShipper, IProduct reposProduct,
     ICategory reposCategory, ISupplier reposSupplier, IProductSize reposProductSize, IOrderDetails reposOrderDetails,
     IOrder reposOrder, ApplicationDbContext context, Microsoft.AspNetCore.SignalR.IHubContext <NotificationsHub> hubContext)
 {
     this.userData       = userData;
     this.userManager    = userManager;
     _hostingEnvironment = hostingEnvironment;
     _reposSize          = reposSize;
     _reposBrand         = reposBrand;
     _reposShipper       = reposShipper;
     _reposProduct       = reposProduct;
     _reposCategory      = reposCategory;
     _reposSupplier      = reposSupplier;
     _reposProductSize   = reposProductSize;
     _reposOrder         = reposOrder;
     _reposOrderDetails  = reposOrderDetails;
     _context            = context;
     _hubContext         = hubContext;
 }
Example #3
0
 public CountController(IHubContext <CountHub> hubContext)
 {
     _hubContext = hubContext;
 }
Example #4
0
 public AdminVarijacijaController(IWebHostEnvironment hostEnvironment, Microsoft.AspNetCore.SignalR.IHubContext <MyHub> hubContext)
 {
     webHostEnvironment = hostEnvironment;
     dbContext          = new MojDbContext();
     this._hubContext   = hubContext;
 }
Example #5
0
 public MailController(IEmailService mailService, IHubContext <ActivationHub> hub)
 {
     this.mailService = mailService;
     _hub             = hub;
 }
 public SendNotificationToClientWhenItemCompletedHandler(IHubContext <NotificationHub> hubContext, ITodoListRepository todoListRepository, IHttpContextAccessor httpContextAccessor)
 {
     _hubContext          = hubContext;
     _todoListRepository  = todoListRepository;
     _httpContextAccessor = httpContextAccessor;
 }