public static IServiceCollection AddElectReserveProxy(this IServiceCollection services, [NotNull] ElectReserveProxyOptions configuration)
 {
     return(services.AddElectReserveProxy(_ =>
     {
         _.ServiceRootUrl = configuration.ServiceRootUrl;
         _.BeforeReserveProxy = configuration.BeforeReserveProxy;
         _.AfterReserveProxy = configuration.AfterReserveProxy;
     }));
 }
 public ReverseProxyMiddleware(RequestDelegate nextMiddleware, IOptions <ElectReserveProxyOptions> configuration)
 {
     _nextMiddleware = nextMiddleware;
     _option         = configuration.Value;
 }