Update to use new perfusion version

This commit is contained in:
Nikolay Kochulin 2019-01-12 17:25:38 +03:00
parent 3e7ace4a7e
commit fdfea2bbb1
3 changed files with 3 additions and 3 deletions

2
.gitmodules vendored
View File

@ -1,3 +1,3 @@
[submodule "perfusion"] [submodule "perfusion"]
path = perfusion path = perfusion
url = http://192.168.1.65/git/perfusion.git url = https://github.com/PorezPorezych/perfusion

View File

@ -29,7 +29,7 @@ namespace JetKarmaBot
var dbOptions = new DbContextOptionsBuilder<KarmaContext>() var dbOptions = new DbContextOptionsBuilder<KarmaContext>()
.UseMySql(cfg.ConnectionString); .UseMySql(cfg.ConnectionString);
c.Add(() => new KarmaContext(dbOptions.Options)); c.AddSingleton(() => new KarmaContext(dbOptions.Options));
c.Add<JetKarmaBot>(); c.Add<JetKarmaBot>();
var bot = c.GetInstance<JetKarmaBot>(); var bot = c.GetInstance<JetKarmaBot>();

@ -1 +1 @@
Subproject commit f60e82ae937afe4d0073daf86c53b04406d4929c Subproject commit 845dbe77b217962a8ce98be50673aa408b081cda