public IntegrationHostFactory(ProxyRouteCollection proxyRouteCollection,
                               ILogger <IntegrationHostFactory> logger)
 {
     // Not a huge fan of having the host factory configuring the proxy routes...
     // Might change this later
     this.ProxyRouteCollection = proxyRouteCollection;
     this.Logger = logger;
 }
 public HeaderIntegrationProxyRouter(IHttpProxy httpProxy,
                                     ProxyRouteCollection proxyRouteCollection,
                                     ILogger <HeaderIntegrationProxyRouter> logger)
 {
     this.HttpProxy            = httpProxy;
     this.ProxyRouteCollection = proxyRouteCollection;
     this.Logger = logger;
 }
        public IntegrationHostManager(ProxyRouteCollection proxyRouteCollection,
                                      IntegrationRegistrar integrationRegistrar,
                                      IIntegrationHostFactory integrationHostFactory,
                                      ILogger <IntegrationHostManager> logger)
        {
            this.ProxyRouteCollection   = proxyRouteCollection;
            this.IntegrationRegistrar   = integrationRegistrar;
            this.IntegrationHostFactory = integrationHostFactory;
            this.Logger = logger;

            // Listen for the Deregister and file modified events from the registrar.
            // This allows us to clean up or restart the integrations when required.
            this.IntegrationRegistrar.OnIntegrationDeregistered  += this.IntegrationRegistrar_OnIntegrationDeregistered;
            this.IntegrationRegistrar.OnIntegrationFilesModified += this.IntegrationRegistrar_OnIntegrationFilesModified;
        }