Class ProviderServiceCollectionExtensions
Convenient extension methods to Microsoft.
Inheritance
System.Object
ProviderServiceCollectionExtensions
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: EPiServer.Framework.AspNetCore.dll
Version: 12.0.3Syntax
public static class ProviderServiceCollectionExtensions : Object
Methods
AddGeolocationProvider(IServiceCollection, Func<IServiceProvider, IGeolocationProvider>)
Registers a geolocation provider.
Declaration
public static IServiceCollection AddGeolocationProvider(this IServiceCollection services, Func<IServiceProvider, IGeolocationProvider> geolocationProviderFactory)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
services | The cms builder |
System. |
geolocationProviderFactory | Called when geolocation provider is to be created, should return a initialized provider. |
Returns
Type | Description |
---|---|
Microsoft. |
The cms builder |