public UsersController(ChatyDb context, IHubContext <ChatHub> chatHub, Microsoft.Extensions.Configuration.IConfiguration configuration, IHostingEnvironment hostingEnvironment) { _context = context; _chatHub = chatHub; _hostingEnvironment = hostingEnvironment; helperServices = new HelperServices(configuration); }
public PMessagesController(ChatyDb context, ChatHub chatHub) { _context = context; _chatHub = chatHub; }
public ChatHub(ChatyDb context) { _context = context; }
public MessagesController(ChatyDb context, IHubContext <ChatHub> chatHub, Microsoft.Extensions.Configuration.IConfiguration configuration) { _context = context; _chatHub = chatHub; helperServices = new HelperServices(configuration); }