public HttpApiHandler(DurableTaskExtension config, ILogger logger)
        {
            this.config = config;
            this.messageDataConverter = this.config.MessageDataConverter;
            this.logger = logger;

            // The listen URL must not include the path.
            this.localHttpListener = new LocalHttpListener(
                config,
                this.HandleRequestAsync);
        }
        public HttpApiHandler(DurableTaskExtension config, ILogger logger)
        {
            this.config = config;
            this.messageDataConverter = this.config.MessageDataConverter;
            this.logger = logger;

            // The listen URL must not include the path.
            var listenUri = new Uri(InternalRpcUri.GetLeftPart(UriPartial.Authority));

            this.localHttpListener = new LocalHttpListener(
                config,
                listenUri,
                this.HandleRequestAsync);
        }