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