Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the RequestQueueAdapter class
 /// </summary>
 /// <param name="observer">indicating the broker observer</param>
 /// <param name="factory">indicating the broker queue factory</param>
 public ResponseQueueAdapter(IBrokerObserver observer, IBrokerQueueFactory factory, int serviceRequestPrefetchCount)
 {
     this.observer                    = observer;
     this.queueFactory                = factory;
     this.replyResponseCallback       = new ThreadHelper <IAsyncResult>(new AsyncCallback(this.ReplyResponse)).CallbackRoot;
     this.serviceRequestPrefetchCount = serviceRequestPrefetchCount;
 }
Beispiel #2
0
        /// <summary>
        /// Initializes a new instance of the RequestQueueAdapter class
        /// </summary>
        /// <param name="observer">indicating the broker observer</param>
        /// <param name="factory">indicating the broker queue factory</param>
        public RequestQueueAdapter(IBrokerObserver observer, IBrokerQueueFactory factory)
        {
            Contract.Requires(observer != null);
            Contract.Requires(factory != null);

            this.observer     = observer;
            this.queueFactory = factory;
        }