/// <summary> /// Creates a new instance with the given callback and exchange list. /// </summary> /// <param name="callback">The callback to call.</param> /// <param name="queueList">The results of the request.</param> public AsyncQueueListResult(QueueListEventHandler callback, AmqpQueue[] queueList) { if (callback == null) { throw new ArgumentNullException("callback"); } if (queueList == null) { throw new ArgumentNullException("queueList"); } Callback = callback; QueueList = queueList; }
/// <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 AsyncQueueListState(HttpWebRequest request, QueueListEventHandler callback) { if (request == null) { throw new ArgumentNullException("request"); } if (callback == null) { throw new ArgumentNullException("callback"); } Request = request; Callback = callback; }