Class ServicesConfiguration
Provides extension methods on IServiceCollection to register DataWeb Core services.
Inherited Members
Namespace: DataWeb.Dependency
Assembly: DataWeb.Core.dll
Syntax
public static class ServicesConfiguration
Methods
AddDataWebAutomation(IServiceCollection)
Registers all DataWeb Automation services into the IServiceCollection.
Declaration
public static IServiceCollection AddDataWebAutomation(this IServiceCollection services)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceCollection | services | The IServiceCollection to add the services to. |
Returns
| Type | Description |
|---|---|
| IServiceCollection | The same IServiceCollection instance, to allow method chaining. |
Remarks
Registers scoped services for automation events, profiles, scenarios, and tasks. Uses TryAdd(IServiceCollection, ServiceDescriptor) variants to avoid duplicate registrations.
AddDataWebCore(IServiceCollection)
Registers all DataWeb Core services into the IServiceCollection.
Declaration
public static IServiceCollection AddDataWebCore(this IServiceCollection services)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceCollection | services | The IServiceCollection to add the services to. |
Returns
| Type | Description |
|---|---|
| IServiceCollection | The same IServiceCollection instance, to allow method chaining. |
Remarks
Registers singleton services (configuration, environment, localization, HTTP, reflection, settings, errors, auditing, analytics), scoped services (structure, forms, lists, media, templating, newsletter, authorization, identity), and transient services (string localizer). Uses TryAdd(IServiceCollection, ServiceDescriptor) variants to avoid duplicate registrations.