public ChatHistory(SocialClient socialClient) { if (socialClient == null) throw new ArgumentNullException ("socialClient"); this.socialClient = socialClient; this.socialClient.ReceivedTextMessage += OnReceivedTextMessage; }
public AddBuddyViewModel(SocialClient client) { if (client == null) throw new ArgumentNullException ("client"); this.client = client; this.addBuddy = new RelayCommand<Person> (OnAddBuddy, CanAddBuddy); this.searchResults = new AsyncValue<IEnumerable<Person>> ( Task.FromResult (Enumerable.Empty<Person>()), Enumerable.Empty<Person>()); }