Example #1
0
 public UsersController(ChatyDb context, IHubContext <ChatHub> chatHub,
                        Microsoft.Extensions.Configuration.IConfiguration configuration, IHostingEnvironment hostingEnvironment)
 {
     _context            = context;
     _chatHub            = chatHub;
     _hostingEnvironment = hostingEnvironment;
     helperServices      = new HelperServices(configuration);
 }
Example #2
0
 public PMessagesController(ChatyDb context, ChatHub chatHub)
 {
     _context = context;
     _chatHub = chatHub;
 }
Example #3
0
 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);
 }