예제 #1
0
        public Startup(IConfiguration configuration)
        {
            Configuration = configuration;

            mqttBroker = new MQTTBroker(1883);
            MQTTProducer.init();

            using (var client = new PersonalSiteContext())
            {
                client.Database.EnsureCreated();
            }
        }
예제 #2
0
 public HomeController(PersonalSiteContext context)
 {
     _context = context;
 }
예제 #3
0
 public JobsController(PersonalSiteContext context)
 {
     _context = context;
 }
예제 #4
0
 public ChatHub(PersonalSiteContext context)
 {
     _context = context;
 }
 public PersonalController(PersonalSiteContext context, IHostingEnvironment appEnvironment)
 {
     _context        = context;
     _appEnvironment = appEnvironment;
 }