public void WhoIs(string nick, Action<WhoIs> callback) { var whois = new WhoIs(); RequestManager.QueueOperation("WHOIS " + nick, new RequestOperation(whois, ro => { if (callback != null) callback((WhoIs)ro.State); })); SendRawMessage("WHOIS {0}", nick); }
public void WhoIs(string nick, Action<WhoIs> callback) { var whois = new WhoIs(); RequestOperation.QueueOperation("WHOIS " + nick, new RequestOperation(whois, ro => { if (callback != null) callback((WhoIs)ro.State); })); SendRawMessage("WHOIS {0}", nick); }