Ejemplo n.º 1
0
 /// <summary>
 /// Configures the provided client-builder to use code-first GRPC for client creation
 /// </summary>
 public static IHttpClientBuilder ConfigureCodeFirstGrpcClient <T>(this IHttpClientBuilder clientBuilder) where T : class
 => clientBuilder.ConfigureGrpcClientCreator(
     (services, callInvoker) => Client.GrpcClientFactory.CreateGrpcService <T>(callInvoker,
                                                                               services.GetService <Configuration.ClientFactory>()));