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); } }
public void AddToView(string url) => TSMan.AddToView(url);