Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge v2.0.4 #652

Merged
merged 4 commits into from
Jan 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/PinguApps.Appwrite.Client/ServiceCollectionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,24 +129,24 @@ public static IServiceCollection AddAppwriteClientForServer(this IServiceCollect
.AddHttpMessageHandler(() => new PolicyHttpMessageHandler(GetCircuitBreakerPolicy<IDatabasesApi>(services, policyOptions)))
.ConfigurePrimaryHttpMessageHandler(ConfigurePrimaryHttpMessageHandler);

services.AddSingleton<IClientAccountClient>(sp =>
services.AddScoped<IClientAccountClient>(sp =>
{
var api = sp.GetRequiredService<IAccountApi>();
var config = sp.GetRequiredKeyedService<Config>("Client");
return new ClientAccountClient(api, config);
});
services.AddSingleton<IClientTeamsClient>(sp =>
services.AddScoped<IClientTeamsClient>(sp =>
{
var api = sp.GetRequiredService<ITeamsApi>();
var config = sp.GetRequiredKeyedService<Config>("Client");
return new ClientTeamsClient(api, config);
});
services.AddSingleton<IClientDatabasesClient>(sp =>
services.AddScoped<IClientDatabasesClient>(sp =>
{
var api = sp.GetRequiredService<IDatabasesApi>();
return new ClientDatabasesClient(api);
});
services.AddSingleton<IClientAppwriteClient, ClientAppwriteClient>();
services.AddScoped<IClientAppwriteClient, ClientAppwriteClient>();

return services;
}
Expand Down
2 changes: 1 addition & 1 deletion src/PinguApps.Appwrite.Shared/Constants.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
namespace PinguApps.Appwrite.Shared;
public static class Constants
{
public const string Version = "2.0.3";
public const string Version = "2.0.4";
}
Loading