/// <summary> /// This method initializes the RequestManager for request dispatching. /// </summary> /// <typeparam name="TRequestDispatcher">The concrete type of an <see cref="IRequestDispatcher"/>.</typeparam> /// <param name="theRequestQueue">Queue for the pending requests.</param> /// <param name="theDeadLetterQueue">Queue for the failures.</param> /// <param name="theConnectionMonitor">IConnectionMonitor for connectivity events and info.</param> /// <param name="theEndpointCatalog">Catalog to get the Endpoint especific information for the dispatching.</param> public void Initialize <TRequestDispatcher>( IRequestQueue theRequestQueue, IRequestQueue theDeadLetterQueue, IConnectionMonitor theConnectionMonitor, IEndpointCatalog theEndpointCatalog) where TRequestDispatcher : IRequestDispatcher, new() { Initialize(theRequestQueue, theDeadLetterQueue, theConnectionMonitor, new TRequestDispatcher(), theEndpointCatalog); }
/// <summary> /// This method initializes the RequestManager for request dispatching with all the configurable elements. /// </summary> /// <param name="theRequestQueue">Queue for the pending requests.</param> /// <param name="theDeadLetterQueue">Queue for the failures.</param> /// <param name="theConnectionMonitor">IConnectionMonitor for connectivity events and info.</param> /// <param name="theEndpointCatalog">Catalog to get the Endpoint especific information for the dispatching.</param> public void Initialize( IRequestQueue theRequestQueue, IRequestQueue theDeadLetterQueue, IConnectionMonitor theConnectionMonitor, IEndpointCatalog theEndpointCatalog) { Initialize <RequestDispatcher>(theRequestQueue, theDeadLetterQueue, theConnectionMonitor, theEndpointCatalog); }
/// <summary> /// This method initializes the RequestManager for request dispatching with all the configurable elements. /// </summary> /// <param name="theRequestQueue">Queue for the pending requests.</param> /// <param name="theDeadLetterQueue">Queue for the failures.</param> /// <param name="theConnectionMonitor">IConnectionMonitor for connectivity events and info.</param> /// <param name="theRequestDispatcher">Dispatcher to be used by the manager.</param> /// <param name="theEndpointCatalog">Catalog to get the Endpoint especific information for the dispatching.</param> private void Initialize( IRequestQueue theRequestQueue, IRequestQueue theDeadLetterQueue, IConnectionMonitor theConnectionMonitor, IRequestDispatcher theRequestDispatcher, IEndpointCatalog theEndpointCatalog) { Guard.ArgumentNotNull(theRequestQueue, "requestQueue"); Guard.ArgumentNotNull(theDeadLetterQueue, "deadLetterQueue"); Guard.ArgumentNotNull(theConnectionMonitor, "connectionMonitor"); Guard.ArgumentNotNull(theRequestDispatcher, "requestDispatcher"); Guard.ArgumentNotNull(theEndpointCatalog, "endpointCatalog"); requestQueue = theRequestQueue; requestDispatcher = theRequestDispatcher; endpointCatalog = theEndpointCatalog; deadLetterQueue = theDeadLetterQueue; connectionMonitor = theConnectionMonitor; dispatchCommands = new Queue <Command>(); dispatcherRunning = false; }
private void QuickStartForm_Load(object sender, EventArgs e) { endpointCatalog = new EndpointCatalogFactory(EndpointsConfigurationSectionName).CreateCatalog(); networkDropDown.SelectedIndex = 0; LoadEndpoints(); }
/// <summary> /// Creates a WCFProxyFactory object. /// </summary> /// <param name="endpointCatalog">The <see cref="IEndpointCatalog"/> that contains address and credentials for communicating to the WCF endpoint.</param> public WCFProxyFactory(IEndpointCatalog endpointCatalog) { this.endpointCatalog = endpointCatalog; }
/// <summary> /// Constructor which sets the IEndpointCatalog to get credentials and address for endpoints. /// </summary> /// <param name="catalog"> /// Endpoint catalog containing addresses and credentials for each endpoint and network names. /// </param> public WebServiceProxyFactory(IEndpointCatalog catalog) { this.catalog = catalog; }