Init() static private méthode

static private Init ( ) : void
Résultat void
        public void Configuration(IAppBuilder app)
        {
            ChatHub.Init();

            Task.Factory.StartNew(
                ChangeHandler.HandleUpdates,
                TaskCreationOptions.LongRunning);

            app.MapSignalR();
        }
Exemple #2
0
        public void Configuration(IAppBuilder app)
        {
            ChatHub.Init();
            //Best we can do without async void
            //ChatHubAsync.Init().Wait();

            Task.Factory.StartNew(
                ChangeHandler.HandleUpdates,
                TaskCreationOptions.LongRunning);

            app.MapSignalR();
        }