Class VirtualRoleServiceConfigurationProviderExtensions
Provides extension methods for Microsoft.Extensions.DependencyInjection.IServiceCollection implemenations.
Inheritance
System.Object
VirtualRoleServiceConfigurationProviderExtensions
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: EPiServer.Framework.dll
Version: 12.0.3Syntax
public static class VirtualRoleServiceConfigurationProviderExtensions : Object
Methods
AddMappedRole(IServiceCollection, String, IEnumerable<String>)
Adds a mapping from one role to one or many other roles.
Declaration
public static IServiceCollection AddMappedRole(this IServiceCollection services, string name, IEnumerable<string> mappedRoles)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection | services | The service configuration provider. |
System.String | name | The name of the virtual role |
System.Collections.Generic.IEnumerable<System.String> | mappedRoles | The roles that should be mapped. |
Returns
Type | Description |
---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection | The service configuration provider |
AddVirtualRole<TProvider>(IServiceCollection, String)
Adds a virtual role
Declaration
public static IServiceCollection AddVirtualRole<TProvider>(this IServiceCollection services, string name)
where TProvider : VirtualRoleProviderBase
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection | services | The service collection. |
System.String | name | The name of the virtual role |
Returns
Type | Description |
---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection | The service configuration provider |
Type Parameters
Name | Description |
---|---|
TProvider | The type of virtual role to add. |