Class VirtualRoleServiceConfigurationProviderExtensions
Provides extension methods for IServiceConfigurationProvider implemenations.
Inheritance
System.Object
VirtualRoleServiceConfigurationProviderExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.ServiceLocation
Assembly: EPiServer.Framework.dll
Version: 11.20.7Syntax
public static class VirtualRoleServiceConfigurationProviderExtensions
Methods
AddMappedRole(IServiceConfigurationProvider, String, IEnumerable<String>)
Adds a mapping from one role to one or many other roles.
Declaration
public static IServiceConfigurationProvider AddMappedRole(this IServiceConfigurationProvider services, string name, IEnumerable<string> mappedRoles)
Parameters
Type | Name | Description |
---|---|---|
IServiceConfigurationProvider | 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 |
---|---|
IServiceConfigurationProvider | The service configuration provider |
AddVirtualRole<TProvider>(IServiceConfigurationProvider, String)
Adds a virtual role
Declaration
public static IServiceConfigurationProvider AddVirtualRole<TProvider>(this IServiceConfigurationProvider services, string name)
where TProvider : VirtualRoleProviderBase
Parameters
Type | Name | Description |
---|---|---|
IServiceConfigurationProvider | services | The service configuration provider. |
System.String | name | The name of the virtual role |
Returns
Type | Description |
---|---|
IServiceConfigurationProvider | The service configuration provider |
Type Parameters
Name | Description |
---|---|
TProvider | The type of virtual role to add. |