public GrpcHttpMiddleware(OcelotRequestDelegate next, IGrpcChannelFactory grpcChannelFactory, IGrpcServiceDescriptor grpcServiceDescriptor, IGrpcRequestBuilder grpcRequestBuilder, IOcelotLoggerFactory factory) : base(factory.CreateLogger <GrpcHttpMiddleware>()) { this.next = next; this.grpcChannelFactory = grpcChannelFactory; this.grpcServiceDescriptor = grpcServiceDescriptor; this.grpcRequestBuilder = grpcRequestBuilder; }
public GrpcRequestBuilder(IOcelotLoggerFactory factory, IGrpcServiceDescriptor grpcServiceDescriptor) { this.logger = factory.CreateLogger <GrpcRequestBuilder>(); this.grpcServiceDescriptor = grpcServiceDescriptor; }