Skip to content

Commit 88b9eef

Browse files
authored
Rename AddClientPool to AddGel. (#113)
1 parent 72cc135 commit 88b9eef

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

docs/api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ API Documentation
846846
A class containing extension methods for DI.
847847

848848

849-
.. dn:method:: AddClientPool(this IServiceCollection collection, GelConnection connection, Action<GelClientPoolConfig> clientPoolConfig): IServiceCollection
849+
.. dn:method:: AddGel(this IServiceCollection collection, GelConnection connection, Action<GelClientPoolConfig> clientPoolConfig): IServiceCollection
850850
851851
Adds a :dn:class:`Gel.GelClientPool` singleton to a ``Microsoft.Extensions.DependencyInjection.IServiceCollection``.
852852

docs/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ easily integrate Gel with your existing applications.
173173

174174
...
175175

176-
services.AddClientPool();
176+
services.AddGel();
177177

178178
.. code-tab:: fsharp
179179

@@ -182,7 +182,7 @@ easily integrate Gel with your existing applications.
182182

183183
...
184184

185-
services.AddClientPool();
185+
services.AddGel();
186186

187187
You can specify both a ``GelConnection`` and a delegate for configuring
188188
the ``GelClientPoolConfig``, the client will be added as a singleton to your

examples/Gel.Examples.CSharp/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
loggingBuilder.AddSerilog(dispose: true);
2121
});
2222

23-
services.AddClientPool(clientPoolConfig: clientConfig =>
23+
services.AddGel(clientPoolConfig: clientConfig =>
2424
{
2525
clientConfig.SchemaNamingStrategy = INamingStrategy.SnakeCaseNamingStrategy;
2626
clientConfig.ClientType = GelClientType.Tcp;

examples/Gel.Examples.ExampleTODOApi/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
builder.Services.AddEndpointsApiExplorer();
1010
builder.Services.AddSwaggerGen();
1111

12-
builder.Services.AddClientPool();
12+
builder.Services.AddGel();
1313

1414
var app = builder.Build();
1515

examples/Gel.Examples.ExampleTODOApi/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ builder.Services.AddControllers();
260260
builder.Services.AddEndpointsApiExplorer();
261261
builder.Services.AddSwaggerGen();
262262

263-
+ builder.Services.AddClientPool();
263+
+ builder.Services.AddGel();
264264

265265
var app = builder.Build();
266266

examples/Gel.Examples.FSharp/Program.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ let host =
1818
.ConfigureServices(fun services ->
1919
services
2020
.AddLogging(fun logBuilder -> logBuilder.ClearProviders().AddSerilog(dispose = true) |> ignore)
21-
.AddClientPool(clientPoolConfig = fun c -> c.SchemaNamingStrategy <- INamingStrategy.SnakeCaseNamingStrategy)
21+
.AddGel(clientPoolConfig = fun c -> c.SchemaNamingStrategy <- INamingStrategy.SnakeCaseNamingStrategy)
2222
.AddSingleton<ExampleRunner>()
2323
|> ignore)
2424
.Build()

src/Gel.Net.Driver/Extensions/GelHostingExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public static class GelHostingExtensions
1919
/// <returns>
2020
/// The source <see cref="IServiceCollection" /> with <see cref="GelClientPool" /> added as a singleton.
2121
/// </returns>
22-
public static IServiceCollection AddClientPool(this IServiceCollection collection, GelConnection? connection = null,
22+
public static IServiceCollection AddGel(this IServiceCollection collection, GelConnection? connection = null,
2323
Action<GelClientPoolConfig>? clientPoolConfig = null)
2424
{
2525
var conn = connection ?? GelConnection.Create();

0 commit comments

Comments
 (0)