コード例 #1
0
ファイル: NotificationHub.cs プロジェクト: tabassa/LiveBet
        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());
        }
コード例 #2
0
        public override Task OnConnected()
        {
            NotificationSports notificationSports = new NotificationSports();

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


            return(base.OnConnected());
        }