You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The .NET SDK now ships an ASP.NET Core dependency injection package. A single method registers the main client and all sub-clients, so you don't have to wire it up by hand.
What's new
Supabase.Extensions.DependencyInjection is a new package that provides an easier way to plug the Supabase .NET SDK into your application. It exposes a new method on IServiceCollection called AddSupabase which registers the main client and all sub-clients:
It registers all clients (Supabase.Client, IGotrueClient, IPostgrestClient, IStorageClient, IFunctionsClient, IRealtimeClient) with a scoped lifecycle, so you can resolve them wherever you need them:
You can always register all the required clients in IServiceCollection yourself. This package simply does it all for you and removes boilerplate from your codebase.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
The .NET SDK now ships an ASP.NET Core dependency injection package. A single method registers the main client and all sub-clients, so you don't have to wire it up by hand.
What's new
Supabase.Extensions.DependencyInjectionis a new package that provides an easier way to plug the Supabase .NET SDK into your application. It exposes a new method onIServiceCollectioncalledAddSupabasewhich registers the main client and all sub-clients:It registers all clients (
Supabase.Client,IGotrueClient,IPostgrestClient,IStorageClient,IFunctionsClient,IRealtimeClient) with a scoped lifecycle, so you can resolve them wherever you need them:The package is available on NuGet:
Why it matters
You can always register all the required clients in
IServiceCollectionyourself. This package simply does it all for you and removes boilerplate from your codebase.Affected products: supabase-dotnet
Authored by @Tr00d
All reactions