Skip to content

Commit

Permalink
Rename AddGrpcRestAdapter to AddRestGrpcAdapter
Browse files Browse the repository at this point in the history
This makes the name match the type name. (The alternative would be to rename GrpcRestAdapter of course...)
  • Loading branch information
jskeet committed Apr 6, 2022
1 parent 1e6358a commit 4f9f337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Google.Api.Gax.Grpc/GaxGrpcServiceCollectionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public static IServiceCollection AddGrpcCoreAdapter(this IServiceCollection serv
/// </summary>
/// <param name="services">The service collection to add the adapter to.</param>
/// <returns>The same service collection reference, for method chaining.</returns>
public static IServiceCollection AddGrpcRestAdapter(this IServiceCollection services) =>
public static IServiceCollection AddRestGrpcAdapter(this IServiceCollection services) =>
services.AddSingleton<GrpcAdapter>(RestGrpcAdapter.Default);
}
}

0 comments on commit 4f9f337

Please sign in to comment.