Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 1.61 KB

File metadata and controls

31 lines (20 loc) · 1.61 KB
name aspnetcore-integration
description Use for the contentstack.management.aspnetcore package, HttpClient/DI registration with ASP.NET Core.

ASP.NET Core integration – Contentstack Management .NET SDK

When to use

  • Changing Contentstack.Management.ASPNETCore/ or the NuGet package contentstack.management.aspnetcore.
  • Registering ContentstackClient with IHttpClientFactory / IServiceCollection.

Instructions

Package

Registration APIs

  • ServiceCollectionExtensions in namespace Microsoft.Extensions.DependencyInjection:
    • AddContentstackClient(IServiceCollection, ContentstackClientOptions) / TryAddContentstackClient — extend here when wiring options-based registration; keep behavior aligned with DI conventions.
    • AddContentstackClient(IServiceCollection, Action<HttpClient>) — registers ContentstackClient with AddHttpClient<ContentstackClient> for typed client configuration.

When extending DI support, align with Microsoft.Extensions.DependencyInjection and Microsoft.Extensions.Http patterns already referenced in the project file.

Core dependency