@@ -25,13 +25,34 @@ public static IHttpClientBuilder AddCodeFirstGrpcClient<T>(this IServiceCollecti
25
25
string name ) where T : class
26
26
=> services . AddGrpcClient < T > ( name ) . ConfigureCodeFirstGrpcClient < T > ( ) ;
27
27
28
+ /// <summary>
29
+ /// Registers a provider that can recognize and handle code-first services
30
+ /// </summary>
31
+ public static IHttpClientBuilder AddCodeFirstGrpcClient < T > ( this IServiceCollection services ,
32
+ string name , Action < GrpcClientFactoryOptions > configureClient ) where T : class
33
+ => services . AddGrpcClient < T > ( name , configureClient ) . ConfigureCodeFirstGrpcClient < T > ( ) ;
34
+
35
+ /// <summary>
36
+ /// Registers a provider that can recognize and handle code-first services
37
+ /// </summary>
38
+ public static IHttpClientBuilder AddCodeFirstGrpcClient < T > ( this IServiceCollection services ,
39
+ string name , Action < IServiceProvider , GrpcClientFactoryOptions > configureClient ) where T : class
40
+ => services . AddGrpcClient < T > ( name , configureClient ) . ConfigureCodeFirstGrpcClient < T > ( ) ;
41
+
28
42
/// <summary>
29
43
/// Registers a provider that can recognize and handle code-first services
30
44
/// </summary>
31
45
public static IHttpClientBuilder AddCodeFirstGrpcClient < T > ( this IServiceCollection services ,
32
46
Action < GrpcClientFactoryOptions > configureClient ) where T : class
33
47
=> services . AddGrpcClient < T > ( configureClient ) . ConfigureCodeFirstGrpcClient < T > ( ) ;
34
48
49
+ /// <summary>
50
+ /// Registers a provider that can recognize and handle code-first services
51
+ /// </summary>
52
+ public static IHttpClientBuilder AddCodeFirstGrpcClient < T > ( this IServiceCollection services ,
53
+ Action < IServiceProvider , GrpcClientFactoryOptions > configureClient ) where T : class
54
+ => services . AddGrpcClient < T > ( configureClient ) . ConfigureCodeFirstGrpcClient < T > ( ) ;
55
+
35
56
/// <summary>
36
57
/// Configures the provided client-builder to use code-first GRPC for client creation
37
58
/// </summary>
0 commit comments