| name | aspnetcore-integration |
|---|---|
| description | Use for the contentstack.management.aspnetcore package, HttpClient/DI registration with ASP.NET Core. |
- Changing
Contentstack.Management.ASPNETCore/or the NuGet packagecontentstack.management.aspnetcore. - Registering
ContentstackClientwithIHttpClientFactory/IServiceCollection.
- Package ID:
contentstack.management.aspnetcore - Target:
netstandard2.1 - Project:
contentstack.management.aspnetcore.csproj
ServiceCollectionExtensionsin namespaceMicrosoft.Extensions.DependencyInjection:AddContentstackClient(IServiceCollection, ContentstackClientOptions)/TryAddContentstackClient— extend here when wiring options-based registration; keep behavior aligned with DI conventions.AddContentstackClient(IServiceCollection, Action<HttpClient>)— registersContentstackClientwithAddHttpClient<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.
- The ASP.NET Core project references the core management package; public types come from
Contentstack.Management.Core.