private static void ChatTest(string[] args, string uri) { var name = args[0]; var conferenceName = args[1]; var dataSource = new ObservableCollection <string>(); if (name.Equals("host")) { using (var spaceRepo = new SpaceRepository()) { new Chat(name, uri, conferenceName, spaceRepo, dataSource).InitializeChat(); Console.WriteLine("Chat is done."); spaceRepo.Dispose(); } } else { new Chat(name, uri, conferenceName, dataSource).InitializeChat(); } }
public void Dispose() { _frame?.Dispose(); _hub?.Dispose(); _repo?.Dispose(); }