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>());
        }
コード例 #2
0
 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>();
 }
コード例 #5
0
 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));
 }
コード例 #8
0
 public static IOcelotPipelineBuilder UseResponderMiddleware(this IOcelotPipelineBuilder builder)
 {
     return(builder.UseMiddleware <ResponderMiddleware>());
 }
 public static IOcelotPipelineBuilder UseGrpcHttpMiddleware(this IOcelotPipelineBuilder builder)
 {
     return(builder.UseMiddleware <GrpcHttpMiddleware>());
 }
コード例 #10
0
 public static IOcelotPipelineBuilder UseLoadBalancingMiddleware(this IOcelotPipelineBuilder builder)
 {
     return(builder.UseMiddleware <LoadBalancingMiddleware>());
 }
コード例 #11
0
 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>());
 }
コード例 #15
0
 public static IOcelotPipelineBuilder UseDownstreamRequestInitialiser(this IOcelotPipelineBuilder builder)
 {
     return(builder.UseMiddleware <DownstreamRequestInitialiserMiddleware>());
 }
コード例 #16
0
 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>());
 }
コード例 #19
0
 public static IOcelotPipelineBuilder UseCustomResponseMiddleware(this IOcelotPipelineBuilder builder)
 {
     return(builder.UseMiddleware <CustomOcelotMiddleware>());
 }
コード例 #20
0
 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>());
 }
コード例 #24
0
 public static IOcelotPipelineBuilder UseCzarRpcMiddleware(this IOcelotPipelineBuilder builder)
 {
     return(builder.UseMiddleware <CzarRpcMiddleware>());
 }