Esempio n. 1
0
 protected virtual void ConfigureExtensions(ActorSystem system, MightyCalcApiConfiguration cfg)
 {
     // system.InitReportingExtension(new ReportingDependencies(GetDbOptions(cfg)));
     // system.InitReportingExtension(new ReportingDependencies(GetDbOptions(cfg)));
     system.InitGridDomainExtension(new CalculatorDomainConfiguration());
 }
Esempio n. 2
0
 protected virtual ExtendedActorSystem CreateActorSystem(MightyCalcApiConfiguration cfg)
 {
     return((ExtendedActorSystem)ActorSystem.Create(cfg.ClusterName, cfg.Akka).StartPbm());
 }
Esempio n. 3
0
 protected virtual DbContextOptions <FunctionUsageContext> GetDbOptions(MightyCalcApiConfiguration cfg)
 {
     return(new DbContextOptionsBuilder <FunctionUsageContext>()
            .UseNpgsql(cfg.ReadModel)
            .Options);
 }