Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Class ProviderServiceCollectionExtensions

Convenient extension methods to Microsoft.Extensions.DependencyInjection.IServiceCollection

Inheritance
System.Object
ProviderServiceCollectionExtensions
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: EPiServer.Framework.AspNetCore.dll
Version: 12.0.3
Syntax
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.Extensions.DependencyInjection.IServiceCollection services

The cms builder

System.Func<System.IServiceProvider, IGeolocationProvider> geolocationProviderFactory

Called when geolocation provider is to be created, should return a initialized provider.

Returns
Type Description
Microsoft.Extensions.DependencyInjection.IServiceCollection

The cms builder