Skip to content

Commit

Permalink
minor renames related to #770
Browse files Browse the repository at this point in the history
  • Loading branch information
Todd committed Oct 22, 2023
1 parent b513532 commit fe2515a
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/Flurl.Http/Configuration/FlurlClientBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@ public interface IFlurlClientBuilder
/// <summary>
/// Configure the IFlurlClient's Settings.
/// </summary>
IFlurlClientBuilder WithSettings(Action<FlurlHttpSettings> configAction);
IFlurlClientBuilder WithSettings(Action<FlurlHttpSettings> configure);

/// <summary>
/// Configure the HttpClient wrapped by this IFlurlClient.
/// </summary>
IFlurlClientBuilder ConfigureHttpClient(Action<HttpClient> configAction);
IFlurlClientBuilder ConfigureHttpClient(Action<HttpClient> configure);

/// <summary>
/// Configure the inner-most HttpMessageHandler associated with this IFlurlClient.
/// </summary>
#if NETCOREAPP2_1_OR_GREATER
IFlurlClientBuilder ConfigureInnerHandler(Action<SocketsHttpHandler> configAction);
IFlurlClientBuilder ConfigureInnerHandler(Action<SocketsHttpHandler> configure);
#else
IFlurlClientBuilder ConfigureInnerHandler(Action<HttpClientHandler> configAction);
IFlurlClientBuilder ConfigureInnerHandler(Action<HttpClientHandler> configure);
#endif

/// <summary>
Expand Down Expand Up @@ -70,8 +70,8 @@ internal FlurlClientBuilder(IFlurlClientFactory factory, string baseUrl) {
}

/// <inheritdoc />
public IFlurlClientBuilder WithSettings(Action<FlurlHttpSettings> configAction) {
_configSettings.Add(configAction);
public IFlurlClientBuilder WithSettings(Action<FlurlHttpSettings> configure) {
_configSettings.Add(configure);
return this;
}

Expand All @@ -82,18 +82,18 @@ public IFlurlClientBuilder AddMiddleware(Func<DelegatingHandler> create) {
}

/// <inheritdoc />
public IFlurlClientBuilder ConfigureHttpClient(Action<HttpClient> configAction) {
_configClient.Add(configAction);
public IFlurlClientBuilder ConfigureHttpClient(Action<HttpClient> configure) {
_configClient.Add(configure);
return this;
}

/// <inheritdoc />
#if NETCOREAPP2_1_OR_GREATER
public IFlurlClientBuilder ConfigureInnerHandler(Action<SocketsHttpHandler> configAction) {
public IFlurlClientBuilder ConfigureInnerHandler(Action<SocketsHttpHandler> configure) {
#else
public IFlurlClientBuilder ConfigureInnerHandler(Action<HttpClientHandler> configAction) {
public IFlurlClientBuilder ConfigureInnerHandler(Action<HttpClientHandler> configure) {
#endif
_handlerBuilder.Configs.Add(configAction);
_handlerBuilder.Configs.Add(configure);
return this;
}

Expand Down

0 comments on commit fe2515a

Please sign in to comment.