예제 #1
0
        public void AddToView(string subject)
        {
            //Himself
            if (subject.Equals(TSMan.URL))
            {
                return;
            }

            try
            {
                TSpaceAdvManager.RWL.AcquireWriterLock(Timeout.Infinite);

                //Add server to view
                TSMan.AddToView(subject);

                TSpaceAdvManager.RWL.ReleaseWriterLock();
            }
            catch (Exception e)
            {
                Console.WriteLine(e.Message);
                Console.WriteLine(e.GetType().ToString());
                Console.WriteLine(e.StackTrace);
            }
        }
예제 #2
0
 public void AddToView(string url) => TSMan.AddToView(url);