private void connectionCheckerTimer_Tick(object sender, EventArgs e)
        {
            connectionCheckerTimer.Stop();
            connectionID = connectionID != 0 ? connectionID : screenShareManager.ControlConnectionForCreation(currentUserID, lessonID); //var olan bir connection varsa ona katlılmaya çalış

            //string myIP = Dns.GetHostEntry(Dns.GetHostName()).AddressList[0].ToString();

            if (connectionID != -1)
            {
                openForm();
            }
            else
            {
                connectionID = screenShareManager.CreateConnection(currentUserID, connectionName, lessonID);//yeni connection oluştur ve başka bir kullanıcı bekle
                secondConnectionCheckerTimer.Start();
            }
        }
Exemple #2
0
 public int CreateConnection(int ID, string connectionName, int lessonID)
 {
     return(screenShareComplexManager.CreateConnection(ID, connectionName, lessonID));
 }