コード例 #1
0
        // 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";
            });
        }
コード例 #2
0
ファイル: PaymentHub.cs プロジェクト: svetovid/btm
 public PaymentHub(IHubContext <PaymentHub> hubContext)
 {
     _bridgeActor = PaasActorSystem.GetSignalRBridgeActor(Send);
     _hubContext  = hubContext;
 }
コード例 #3
0
 public PaymentHub(PaasActorSystem actorSystem)
 {
     _actorSystem = actorSystem;
 }