Beispiel #1
0
        public override Task OnConnected()
        {
            NotificationSports notificationSports = new NotificationSports();

            Clients.All.returnFullTableSports(notificationSports.GetTableSports());

            NotificationEvents notificationEvents = new NotificationEvents();

            Clients.All.returnSportEv(notificationEvents.GetSportEv());

            NotificationMatches notificationClass = new NotificationMatches();

            Clients.All.returnFullTableMatches(notificationClass.GetTableMatches());

            NotificationBets notificationBets = new NotificationBets();

            Clients.All.returnFullTableBets(notificationBets.GetTableBets());

            NotificationOdds notificationOdds = new NotificationOdds();

            Clients.All.returnFullTableOdds(notificationOdds.GetTableOdds());


            return(base.OnConnected());
        }
Beispiel #2
0
        public override Task OnConnected()
        {
            NotificationOdds notificationOdds = new NotificationOdds();

            Clients.Caller.returnFullTableOdds(notificationOdds.GetTableOdds());


            return(base.OnConnected());
        }
Beispiel #3
0
        protected void Session_Start(object sender, EventArgs e)
        {
            NotificationSports NS = new NotificationSports();

            NS.RegisterNotificationSports();
            NotificationBets NB = new NotificationBets();

            NB.RegisterNotificationBets();
            NotificationEvents NE = new NotificationEvents();

            NE.RegisterNotificationEvent();
            NotificationMatches NC = new NotificationMatches();

            NC.RegisterNotificationMatches();
            NotificationOdds NO = new NotificationOdds();

            NO.RegisterNotificationOdds();
        }