// This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1); Log.Logger = new LoggerConfiguration() .WriteTo.Console() .CreateLogger(); Serilog.Debugging.SelfLog.Enable(msg => Debug.WriteLine(msg)); services.AddSignalR(); //services.AddPaasActorSystem(); //services.AddSingleton(Akka.Actor.ActorSystem.Create("paassystem")); PaasActorSystem.ActivateActorSystem(); // In production, the Angular files will be served from this directory services.AddSpaStaticFiles(configuration => { configuration.RootPath = "ClientApp/dist"; }); }
public PaymentHub(IHubContext <PaymentHub> hubContext) { _bridgeActor = PaasActorSystem.GetSignalRBridgeActor(Send); _hubContext = hubContext; }
public PaymentHub(PaasActorSystem actorSystem) { _actorSystem = actorSystem; }