Пример #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());
 }
Пример #2
0
 protected virtual ExtendedActorSystem CreateActorSystem(MightyCalcApiConfiguration cfg)
 {
     return((ExtendedActorSystem)ActorSystem.Create(cfg.ClusterName, cfg.Akka).StartPbm());
 }
Пример #3
0
 protected virtual DbContextOptions <FunctionUsageContext> GetDbOptions(MightyCalcApiConfiguration cfg)
 {
     return(new DbContextOptionsBuilder <FunctionUsageContext>()
            .UseNpgsql(cfg.ReadModel)
            .Options);
 }