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>());
 }
Пример #3
0
 public static IOcelotPipelineBuilder UseDownstreamRouteFinderMiddleware(this IOcelotPipelineBuilder builder)
 {
     return(builder.UseMiddleware <DownstreamRouteFinderMiddleware>());
 }
Пример #4
0
 public static void UseRpcRequesterMiddleware(this IOcelotPipelineBuilder builder)
 {
     builder.UseMiddleware <RelayRequesterMiddleware>();
 }
 public static IOcelotPipelineBuilder UseOutputCacheMiddleware(this IOcelotPipelineBuilder builder)
 {
     return(builder.UseMiddleware <OutputCacheMiddleware>());
 }
Пример #6
0
 public static IOcelotPipelineBuilder UseCzarClientRateLimitMiddleware(this IOcelotPipelineBuilder builder)
 {
     return(builder.UseMiddleware <CzarClientRateLimitMiddleware>());
 }
Пример #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>());
 }
Пример #13
0
 public static IOcelotPipelineBuilder UseSecurityMiddleware(this IOcelotPipelineBuilder builder)
 {
     return(builder.UseMiddleware <SecurityMiddleware>());
 }
Пример #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>());
 }
Пример #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>());
 }
Пример #21
0
 public static IOcelotPipelineBuilder UseAhphAuthenticationMiddleware(this IOcelotPipelineBuilder builder)
 {
     return(builder.UseMiddleware <AhphAuthenticationMiddleware>());
 }
Пример #22
0
 public static IOcelotPipelineBuilder UseRefreshTokenMiddleware(this IOcelotPipelineBuilder builder)
 {
     return(builder.UseMiddleware <TokenRefreshMiddleware>());
 }
Пример #23
0
 public static IOcelotPipelineBuilder UseHttpRequestHeadersBuilderMiddleware(this IOcelotPipelineBuilder builder)
 {
     return(builder.UseMiddleware <HttpRequestHeadersBuilderMiddleware>());
 }
 public static IOcelotPipelineBuilder UseCzarRpcMiddleware(this IOcelotPipelineBuilder builder)
 {
     return(builder.UseMiddleware <CzarRpcMiddleware>());
 }