/// <summary> /// Creates a new instance with the given callback and exchange list. /// </summary> /// <param name="callback">The callback to call.</param> /// <param name="exchangeList">The results of the request.</param> public AsyncExchangeListResult(ExchangeListEventHandler callback, AmqpExchange[] exchangeList) { if (callback == null) { throw new ArgumentNullException("callback"); } if (exchangeList == null) { throw new ArgumentNullException("exchangeList"); } Callback = callback; ExchangeList = exchangeList; }
/// <summary> /// Creates a new state object for the given web request and callback. /// </summary> /// <param name="request">The web request.</param> /// <param name="callback">The results callback.</param> public AsyncExchangeListState(HttpWebRequest request, ExchangeListEventHandler callback) { if (request == null) { throw new ArgumentNullException("request"); } if (callback == null) { throw new ArgumentNullException("callback"); } Request = request; Callback = callback; }