We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Based from sample here
Add someone new service
let app = application { no_router listen_local 10042 (fun opts -> opts.Protocols <- HttpProtocols.Http2) use_grpc Service1 use_grpc Service2 }
Only Service2 works
The text was updated successfully, but these errors were encountered:
To workaround, I created a new grpc to use interceptors and multiples services
type Saturn.Application.ApplicationBuilder with [<CustomOperation("grpc")>] member __.UseCustomGrpc(state) = let configureServices (services: IServiceCollection) = // services.AddGrpc(fun opt -> opt.Interceptors.Add<InterceptorTest>()) |> ignore services.AddGrpc() |> ignore services let configureApp (app: IApplicationBuilder) = app.UseRouting() let configureGrpcEndpoint (app: IApplicationBuilder) = app.UseEndpoints (fun endpoints -> endpoints.MapGrpcService<Service1>() |> ignore) |> ignore app.UseEndpoints (fun endpoints -> endpoints.MapGrpcService<Service2>() |> ignore) |> ignore app.UseEndpoints (fun endpoints -> endpoints.MapGrpcService<Service3>() |> ignore) |> ignore app { state with AppConfigs = configureApp::configureGrpcEndpoint::state.AppConfigs ServicesConfig = configureServices::state.ServicesConfig }
let app = application { no_router listen_local 10042 (fun opts -> opts.Protocols <- HttpProtocols.Http2) grpc }
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Based from sample here
Add someone new service
Only Service2 works
The text was updated successfully, but these errors were encountered: