StartListening() public method

public StartListening ( ) : void
return void
Esempio n. 1
0
        public void Start()
        {
            GameListener = new GameBroadcastListener(AppConfig.Instance.BroadcastPort);
            GameListener.StartListening();
			UpdateWebsiteTimer = new Timer(10000);
			UpdateWebsiteTimer.Elapsed += UpdateWebsiteTimerOnElapsed;
			if(AppConfig.Instance.TestMode == false)
				UpdateWebsiteTimer.Start();
        }
Esempio n. 2
0
        public CustomGameList()
        {
            InitializeComponent();
            broadcastListener = new GameBroadcastListener();
            broadcastListener.StartListening();
            dragHandler = this.ListViewGameList_OnDragDelta;
            ListViewGameList.AddHandler(Thumb.DragDeltaEvent, dragHandler, true);
            HostedGameList = new ObservableCollection<HostedGameViewModel>();
            Program.LobbyClient.OnLoginComplete += LobbyClient_OnLoginComplete;
            Program.LobbyClient.OnDisconnect += LobbyClient_OnDisconnect;
            //Program.LobbyClient.OnDataReceived += LobbyClient_OnDataReceived;
            Program.LobbyClient.Chatting.OnCreateRoom += ChattingOnOnCreateRoom;

            Spectate = Prefs.SpectateGames;
            ShowKillGameButton = Prefs.IsAdmin;
            ShowUninstalledGames = Prefs.HideUninstalledGamesInList == false;

            _refreshGameListTimer = new Timer(RefreshGamesTask,null,5000,15000);
        }
Esempio n. 3
0
        public CustomGameList()
        {
            InitializeComponent();
            broadcastListener = new GameBroadcastListener();
            broadcastListener.StartListening();
            dragHandler = this.ListViewGameList_OnDragDelta;
            ListViewGameList.AddHandler(Thumb.DragDeltaEvent, dragHandler, true);
            HostedGameList = new ObservableCollection<HostedGameViewModel>();
            Program.LobbyClient.OnLoginComplete += LobbyClient_OnLoginComplete;
            Program.LobbyClient.OnDisconnect += LobbyClient_OnDisconnect;
            Program.LobbyClient.OnDataReceived += LobbyClient_OnDataReceived;
            Program.LobbyClient.Chatting.OnCreateRoom += ChattingOnOnCreateRoom;

            timer = new Timer(10000);
            timer.Start();
            timer.Elapsed += this.TimerElapsed;
            refreshVisualListTimer = new Timer(10000);
            refreshVisualListTimer.Start();
            refreshVisualListTimer.Elapsed += RefreshGameList;
            ShowRunningGames = Prefs.ShowRunningGames;
            ShowUninstalledGames = Prefs.HideUninstalledGamesInList == false;
        }
Esempio n. 4
0
 public void Start()
 {
     GameListener = AppConfig.Instance.Test ? new GameBroadcastListener(21235) : new GameBroadcastListener(21237);
     GameListener.StartListening();
 }
Esempio n. 5
0
 public void Start()
 {
     GameListener = new GameBroadcastListener(AppConfig.Instance.BroadcastPort);
     GameListener.StartListening();
 }