示例#1
0
        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;
 }
示例#4
0
 public ChatHub(PersonalSiteContext context)
 {
     _context = context;
 }
 public PersonalController(PersonalSiteContext context, IHostingEnvironment appEnvironment)
 {
     _context        = context;
     _appEnvironment = appEnvironment;
 }