Class VisitorGroupRoleRepository
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. A repository for VisitorGroupRole
Implements
Inherited Members
Namespace: EPiServer.Personalization.VisitorGroups.Internal
Assembly: EPiServer.Framework.AspNet.dll
Version: 11.20.7Syntax
[ServiceConfiguration(FactoryType = typeof(VisitorGroupRole), FactoryMember = "GetRepository")]
public class VisitorGroupRoleRepository : VirtualRoleRepository<VisitorGroupRole>, IDisposable, IVisitorGroupRoleRepository, IVisitorGroupRoleRegistry, IVisitorGroupRoleEvents
Constructors
VisitorGroupRoleRepository(IVirtualRoleReplication, ICriterionEvents, ISynchronizedObjectInstanceCache, IVisitorGroupRoleFactory)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the VisitorGroupRoleRepository class.
Declaration
public VisitorGroupRoleRepository(IVirtualRoleReplication replication, ICriterionEvents criterionEvents, ISynchronizedObjectInstanceCache cache, IVisitorGroupRoleFactory visitorGroupRoleFactory)
Parameters
Type | Name | Description |
---|---|---|
IVirtualRoleReplication | replication | |
ICriterionEvents | criterionEvents | |
ISynchronizedObjectInstanceCache | cache | |
IVisitorGroupRoleFactory | visitorGroupRoleFactory |
Methods
AfterUnregister(VisitorGroupRole)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Calls Subscribe on the Unsubscribe group role.
Declaration
protected override void AfterUnregister(VisitorGroupRole virtualRoleProvider)
Parameters
Type | Name | Description |
---|---|---|
VisitorGroupRole | virtualRoleProvider | The visitor group role. |
Overrides
BeforeRegister(VisitorGroupRole)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Calls Subscribe on the visitor group role.
Declaration
protected override void BeforeRegister(VisitorGroupRole virtualRoleProvider)
Parameters
Type | Name | Description |
---|---|---|
VisitorGroupRole | virtualRoleProvider | The visitor group role. |
Overrides
Register(VisitorGroup, Boolean)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Registers the specified visitor group.
Declaration
public void Register(VisitorGroup visitorGroup, bool replicateChanges)
Parameters
Type | Name | Description |
---|---|---|
VisitorGroup | visitorGroup | The visitor group. |
System.Boolean | replicateChanges | if set to |
Register(String, Type, Boolean)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Register a new visitor group role.
Declaration
public override void Register(string name, Type virtualRoleProviderType, bool replicateChanges)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the role |
System.Type | virtualRoleProviderType | The type of the implementation |
System.Boolean | replicateChanges | True if changes should be replicated to other instances or machines |
Overrides
Unregister(String, Boolean)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Unregister a Visitor Group
Declaration
public override void Unregister(string name, bool replicateChanges)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the role |
System.Boolean | replicateChanges | Replicate changes to all instences of this class |
Overrides
Events
VisitorGroupRegistered
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Fired when Regiter visitor group is called
Declaration
public event EventHandler<VirtualRoleReplicationEventArgs> VisitorGroupRegistered
Event Type
Type | Description |
---|---|
System.EventHandler<VirtualRoleReplicationEventArgs> |
VisitorGroupUnregistered
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Fired when Unregiter visitor group is called
Declaration
public event EventHandler<VirtualRoleReplicationEventArgs> VisitorGroupUnregistered
Event Type
Type | Description |
---|---|
System.EventHandler<VirtualRoleReplicationEventArgs> |
Explicit Interface Implementations
IVisitorGroupRoleRegistry.add_ClearedCache(EventHandler)
Declaration
void IVisitorGroupRoleRegistry.add_ClearedCache(EventHandler value)
Parameters
Type | Name | Description |
---|---|---|
System.EventHandler | value |
IVisitorGroupRoleRegistry.remove_ClearedCache(EventHandler)
Declaration
void IVisitorGroupRoleRegistry.remove_ClearedCache(EventHandler value)
Parameters
Type | Name | Description |
---|---|---|
System.EventHandler | value |