private void ServiceLoader_EnableComplete(object sender, EventArgs e) { this._chatService = this.ServiceLoader.Get<ChatService>(); }
/// <summary> /// Initializes a new instance of the <see cref="Chatter" /> class. /// </summary> /// <param name="chatService">The chat service being wrapped.</param> /// <param name="name">The prefix used for sending messages.</param> public Chatter(ChatService chatService, string name) { this.ChatService = chatService; this.Name = name; }