public Startup(IConfiguration configuration) { Configuration = configuration; mqttBroker = new MQTTBroker(1883); MQTTProducer.init(); using (var client = new PersonalSiteContext()) { client.Database.EnsureCreated(); } }
public HomeController(PersonalSiteContext context) { _context = context; }
public JobsController(PersonalSiteContext context) { _context = context; }
public ChatHub(PersonalSiteContext context) { _context = context; }
public PersonalController(PersonalSiteContext context, IHostingEnvironment appEnvironment) { _context = context; _appEnvironment = appEnvironment; }