diff --git a/src/DotNetCore.CAP/Dashboard/GatewayProxy/GatewayProxyMiddlewareBase.cs b/src/DotNetCore.CAP/Dashboard/GatewayProxy/GatewayProxyMiddlewareBase.cs deleted file mode 100644 index 94fc8c0..0000000 --- a/src/DotNetCore.CAP/Dashboard/GatewayProxy/GatewayProxyMiddlewareBase.cs +++ /dev/null @@ -1,39 +0,0 @@ -using System.Net.Http; - -namespace DotNetCore.CAP.Dashboard.GatewayProxy -{ - public abstract class GatewayProxyMiddlewareBase - { - protected IRequestScopedDataRepository _requestScopedDataRepository; - - protected GatewayProxyMiddlewareBase() - { - MiddlewareName = this.GetType().Name; - } - - public string MiddlewareName { get; } - - //public DownstreamRoute DownstreamRoute => _requestScopedDataRepository.Get("DownstreamRoute"); - - public HttpRequestMessage Request => _requestScopedDataRepository.Get("Request"); - - public HttpRequestMessage DownstreamRequest => _requestScopedDataRepository.Get("DownstreamRequest"); - - public HttpResponseMessage HttpResponseMessage => _requestScopedDataRepository.Get("HttpResponseMessage"); - - public void SetUpstreamRequestForThisRequest(HttpRequestMessage request) - { - _requestScopedDataRepository.Add("Request", request); - } - - public void SetDownstreamRequest(HttpRequestMessage request) - { - _requestScopedDataRepository.Add("DownstreamRequest", request); - } - - public void SetHttpResponseMessageThisRequest(HttpResponseMessage responseMessage) - { - _requestScopedDataRepository.Add("HttpResponseMessage", responseMessage); - } - } -} \ No newline at end of file