public MyHub(IUserConnectionManager userConnectionManager, IWebService webService, StatelessServiceContext serviceContext, FabricClient fabricClient) { _userConnectionManager = userConnectionManager; _webService = webService; this.serviceContext = serviceContext; this.fabricClient = fabricClient; }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env, IServiceProvider serviceProvider) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } else { app.UseExceptionHandler("/Home/Error"); } app.UseStaticFiles(); app.UseRouting(); app.UseAuthorization(); app.Use(async(context, next) => { serviceProvider = context.RequestServices; hubContext = context.RequestServices.GetRequiredService <IHubContext <MyHub, IMyHub> >(); userConnectionManager = context.RequestServices.GetRequiredService <IUserConnectionManager>(); await next.Invoke(); }); app.UseEndpoints(endpoints => { endpoints.MapControllerRoute( name: "default", pattern: "{controller=Home}/{action=Index}/{id?}"); endpoints.MapHub <MyHub>("/myHub"); }); }
public UserController(IUserService userService, IRoleService roleService, INotificationService notificationService, IUserConnectionManager userConnectionManager) { this.userService = userService; this.roleService = roleService; this.notificationService = notificationService; this.userConnectionManager = userConnectionManager; }
public RequestController( RepositoryContext context, IMapper mapper, IUserConnectionManager userConnectionManager, IHubContext <NotifHub> hubContext) { _context = context; _mapper = mapper; _hubContext = hubContext; _userConnectionManager = userConnectionManager; }
public AdminController(IRoleService roleService, IUserService userService, INotificationService notificationService, IImageService imageService, IHubContext <NotificationUserHub> notificationUserHubContext, IUserConnectionManager userConnectionManager) { this.userService = userService; this.roleService = roleService; this.notificationService = notificationService; this.imageService = imageService; this.notificationUserHubContext = notificationUserHubContext; this.userConnectionManager = userConnectionManager; }
public NotificationController(IHubContext <NotificationHub> notificationHubContext, IHubContext <NotificationUserHub> notificationUserHubContext, IUserConnectionManager userConnectionManager, MyContext db) { _notificationHubContext = notificationHubContext; _notificationUserHubContext = notificationUserHubContext; _userConnectionManager = userConnectionManager; _db = db; }
public ManagingController( IDataManager dataManager, IHubContext <NotificationHub> notificationHubContext, IUserConnectionManager userConnectionManager, IEmailService emailService) { _dataManager = dataManager; _notificationHubContext = notificationHubContext; _userConnectionManager = userConnectionManager; _emailService = emailService; }
public NotificationHub(IHttpContextAccessor httpContextAccessor, IUserConnectionManager userConnection, IHubContext <NotificationHub> notificationHubContext, IAccountRepository accountRepository, IMessageRepository messageRepository) { _accountRepository = accountRepository; _notificationHubContext = notificationHubContext; _httpContextAccessor = httpContextAccessor; _userConnectionManager = userConnection; _messageRepository = messageRepository; }
public UsersController(RepositoryContext context, UserManager <User> userManager, IMapper mapper, IUserConnectionManager userConnectionManager, RoleManager <Role> roleManager) { _context = context; _roleManager = roleManager; _userConnectionManager = userConnectionManager; _userManager = userManager; _mapper = mapper; }
public AnswerController( IAnswersRepository answersRepository, IUsersRepository usersRepository, IUserConnectionManager userConnectionManager, ApplicationDbContext context ) { this.answersRepository = answersRepository; this.usersRepository = usersRepository; this.notificationRepository = new NotificationRepository(context, userConnectionManager); }
public ArticleController( ArticleRepository _articleRepository, IWebHostEnvironment _webHostEnvironment, CommentRepository _commentRepository, UserManager <IdentityUser> _userManager, ILogger <ArticleController> _logger, IHubContext <NotificationHub> _notificationHub, IUserConnectionManager _userConnectionManager) { userConnectionManager = _userConnectionManager; notificationHub = _notificationHub; commentRepository = _commentRepository; articleRepository = _articleRepository; webHostEnvironment = _webHostEnvironment; userManager = _userManager; logger = _logger; }
public QuestionController(IQuestionsRepository questionsRepository, IQuestionRecommendation questionRecommendation, ITagsRepository tagsRepository, ITagPostRepository tagPostRepository, IUserConnectionManager userConnectionManager, IReactionRepository reactionRepository, IUsersRepository usersRepository, ApplicationDbContext context) { this.questionsRepository = questionsRepository; this.questionRecommendation = questionRecommendation; this.tagsRepository = tagsRepository; this.tagPostRepository = tagPostRepository; this.notificationRepository = new NotificationRepository(context, userConnectionManager); this.reactionRepository = reactionRepository; this.usersRepository = usersRepository; }
public AuthController(IOptions <JwtBearerTokenSettings> jwtTokenOptions, UserManager <User> userManager, RepositoryContext dbContext, ILogger <AuthController> logger, IHubContext <NotifHub> hubContext, RoleManager <Role> roleManager, IUserConnectionManager userConnectionManager, IMapper mapper) { _jwtBearerTokenSettings = jwtTokenOptions.Value; _userManager = userManager; _dbContext = dbContext; _userConnectionManager = userConnectionManager; _roleManager = roleManager; _mapper = mapper; _logger = logger; _hubContext = hubContext; }
public TicketsController(IUserConnectionManager userConnectionManager, IHubContext <NotificationHub> notificationHubContext, UserManager <ApplicationUser> userManager, RoleManager <ApplicationRole> roleManager, ITicketTopicRepository ticketTopicRepository, ITicketStatusRepository ticketStatusRepository, ITicketPriorityRepository ticketPriorityRepository, ITicketRepository ticketRepository, INotificationRepository notificationRepository, IUnitOfWork unitOfWork, IMapper mapper) { this.mapper = mapper; this.unitOfWork = unitOfWork; this.userConnectionManager = userConnectionManager; this.notificationHubContext = notificationHubContext; this.userManager = userManager; this.roleManager = roleManager; this.ticketTopicRepository = ticketTopicRepository; this.ticketStatusRepository = ticketStatusRepository; this.ticketPriorityRepository = ticketPriorityRepository; this.ticketRepository = ticketRepository; this.notificationRepository = notificationRepository; }
public NotificationHub(IUserConnectionManager _userConnectionManager) { userConnectionManager = _userConnectionManager; }
public NotificationHub(IUserConnectionManager userConnectionManager) { this.userConnectionManager = userConnectionManager; }
public AppNotificacionService(IHubContext <AppNotificacionHub> messagehubcontext, IUserConnectionManager userConnectionManager) { _messagehubcontext = messagehubcontext; _userConnectionManager = userConnectionManager; }
public AppNotificacionHub(IUserConnectionManager userConnectionManager) { _userConnectionManager = userConnectionManager; }
public ChatHub(IUserConnectionManager userConnectionManager) { _userConnectionManager = userConnectionManager; }
public NotificationRepository(QalitasContext dbContext, IUserConnectionManager userConnectionManager, IHubContext <NotificationHub> notificationHubContext) { _dbContext = dbContext; _userConnectionManager = userConnectionManager; _notificationHubContext = notificationHubContext; }
public NotificationHub(IUserConnectionManager userConnectionManager, IUserManagerHelper helper) { _userConnectionManager = userConnectionManager; _helper = helper; }
public ChatsController(ApplicationDbContext context, IChatRepository chatRepository, IUserConnectionManager userConnectionManager) { _chatRepository = chatRepository; _notificationRepository = new NotificationRepository(context, userConnectionManager); }
public AdminController(IHubContext <NotificationHub> notificationHubContext, IHubContext <NotificationUserHub> notificationUserHubContext, IUserConnectionManager userConnectionManager) { _notificationHubContext = notificationHubContext; _notificationUserHubContext = notificationUserHubContext; _userConnectionManager = userConnectionManager; }
public ChatController(IHubContext <ChatHub> hub, IUserConnectionManager userConnectionMgr) { _chatHub = hub; _userConnectionManager = userConnectionMgr; }
public NotificationUserHub(IUserConnectionManager userConnectionManager) { _userConnectionManager = userConnectionManager; }
public NotificationRepository(ApplicationDbContext context, IUserConnectionManager userConnectionManager) { _context = context; _userConnectionManager = userConnectionManager; }