public static IOcelotPipelineBuilder UseGrpcHttpMiddleware(this IOcelotPipelineBuilder builder)
        {
            ServiceLocator.Instance = builder.ApplicationServices;
            var plugin = ServiceLocator.GetService <GrpcPluginFactory>();
            var proto  = ServiceLocator.GetService <GrpcProtoFactory>();

            plugin.InitAsync();
            proto.InitAsync();
            return(builder.UseMiddleware <OcelotGrpcHttpMiddleware>());
        }
 public static IOcelotPipelineBuilder UseClaimsToClaimsMiddleware(this IOcelotPipelineBuilder builder)
 {
     return(builder.UseMiddleware <ClaimsToClaimsMiddleware>());
 }
Example #3
0
 public static IOcelotPipelineBuilder UseDownstreamRouteFinderMiddleware(this IOcelotPipelineBuilder builder)
 {
     return(builder.UseMiddleware <DownstreamRouteFinderMiddleware>());
 }
Example #4
0
 public static void UseRpcRequesterMiddleware(this IOcelotPipelineBuilder builder)
 {
     builder.UseMiddleware <RelayRequesterMiddleware>();
 }
 public static IOcelotPipelineBuilder UseOutputCacheMiddleware(this IOcelotPipelineBuilder builder)
 {
     return(builder.UseMiddleware <OutputCacheMiddleware>());
 }
Example #6
0
 public static IOcelotPipelineBuilder UseCzarClientRateLimitMiddleware(this IOcelotPipelineBuilder builder)
 {
     return(builder.UseMiddleware <CzarClientRateLimitMiddleware>());
 }
Example #7
0
 public static IOcelotPipelineBuilder UseMiddleware <TMiddleware>(this IOcelotPipelineBuilder app, params object[] args)
 {
     return(app.UseMiddleware(typeof(TMiddleware), args));
 }
 public static IOcelotPipelineBuilder UseResponderMiddleware(this IOcelotPipelineBuilder builder)
 {
     return(builder.UseMiddleware <ResponderMiddleware>());
 }
 public static IOcelotPipelineBuilder UseGrpcHttpMiddleware(this IOcelotPipelineBuilder builder)
 {
     return(builder.UseMiddleware <GrpcHttpMiddleware>());
 }
 public static IOcelotPipelineBuilder UseLoadBalancingMiddleware(this IOcelotPipelineBuilder builder)
 {
     return(builder.UseMiddleware <LoadBalancingMiddleware>());
 }
 public static IOcelotPipelineBuilder UseQueryStringBuilderMiddleware(this IOcelotPipelineBuilder builder)
 {
     return(builder.UseMiddleware <QueryStringBuilderMiddleware>());
 }
 public static IOcelotPipelineBuilder UseOrleansRequesterMiddleware(this IOcelotPipelineBuilder builder)
 {
     return(builder.UseMiddleware <OrleansRequesterMiddleware>());
 }
Example #13
0
 public static IOcelotPipelineBuilder UseSecurityMiddleware(this IOcelotPipelineBuilder builder)
 {
     return(builder.UseMiddleware <SecurityMiddleware>());
 }
Example #14
0
 public static IOcelotPipelineBuilder UseCzaHttpRequesterMiddleware(this IOcelotPipelineBuilder builder)
 {
     return(builder.UseMiddleware <CzarHttpRequesterMiddleware>());
 }
 public static IOcelotPipelineBuilder UseDownstreamRequestInitialiser(this IOcelotPipelineBuilder builder)
 {
     return(builder.UseMiddleware <DownstreamRequestInitialiserMiddleware>());
 }
 public static IOcelotPipelineBuilder UseRequestIdMiddleware(this IOcelotPipelineBuilder builder)
 {
     return(builder.UseMiddleware <ReRouteRequestIdMiddleware>());
 }
 public static IOcelotPipelineBuilder UseHttpHeadersTransformationMiddleware(this IOcelotPipelineBuilder builder)
 {
     return(builder.UseMiddleware <HttpHeadersTransformationMiddleware>());
 }
Example #18
0
 public static IOcelotPipelineBuilder UseExceptionHandlerMiddleware(this IOcelotPipelineBuilder builder)
 {
     return(builder.UseMiddleware <ExceptionHandlerMiddleware>());
 }
 public static IOcelotPipelineBuilder UseCustomResponseMiddleware(this IOcelotPipelineBuilder builder)
 {
     return(builder.UseMiddleware <CustomOcelotMiddleware>());
 }
 public static IOcelotPipelineBuilder UseWebSocketsProxyMiddleware(this IOcelotPipelineBuilder builder)
 {
     return(builder.UseMiddleware <WebSocketsProxyMiddleware>());
 }
Example #21
0
 public static IOcelotPipelineBuilder UseAhphAuthenticationMiddleware(this IOcelotPipelineBuilder builder)
 {
     return(builder.UseMiddleware <AhphAuthenticationMiddleware>());
 }
Example #22
0
 public static IOcelotPipelineBuilder UseRefreshTokenMiddleware(this IOcelotPipelineBuilder builder)
 {
     return(builder.UseMiddleware <TokenRefreshMiddleware>());
 }
Example #23
0
 public static IOcelotPipelineBuilder UseHttpRequestHeadersBuilderMiddleware(this IOcelotPipelineBuilder builder)
 {
     return(builder.UseMiddleware <HttpRequestHeadersBuilderMiddleware>());
 }
 public static IOcelotPipelineBuilder UseCzarRpcMiddleware(this IOcelotPipelineBuilder builder)
 {
     return(builder.UseMiddleware <CzarRpcMiddleware>());
 }