Class VisitorGroupRoleRepository
A repository for VisitorGroupRole
Implements
System.IDisposable
Inherited Members
Namespace: EPiServer.Personalization.VisitorGroups.Internal
Assembly: EPiServer.Framework.AspNetCore.dll
Version: 12.0.3Syntax
public class VisitorGroupRoleRepository : VirtualRoleRepository<VisitorGroupRole>, IDisposable, IVisitorGroupRoleRepository, IVisitorGroupRoleRegistry, IVisitorGroupRoleEvents
Constructors
VisitorGroupRoleRepository(IVirtualRoleReplication, ICriterionEvents, ISynchronizedObjectInstanceCache, IVisitorGroupRoleFactory)
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)
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
EPiServer.Security.VirtualRoleRepository<EPiServer.Personalization.VisitorGroups.VisitorGroupRole>.AfterUnregister(EPiServer.Personalization.VisitorGroups.VisitorGroupRole)
BeforeRegister(VisitorGroupRole)
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
EPiServer.Security.VirtualRoleRepository<EPiServer.Personalization.VisitorGroups.VisitorGroupRole>.BeforeRegister(EPiServer.Personalization.VisitorGroups.VisitorGroupRole)
Register(VisitorGroup, Boolean)
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)
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
EPiServer.Security.VirtualRoleRepository<EPiServer.Personalization.VisitorGroups.VisitorGroupRole>.Register(System.String, System.Type, System.Boolean)
Unregister(String, Boolean)
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
EPiServer.Security.VirtualRoleRepository<EPiServer.Personalization.VisitorGroups.VisitorGroupRole>.Unregister(System.String, System.Boolean)
Events
VisitorGroupRegistered
Fired when Regiter visitor group is called
Declaration
public event EventHandler<VirtualRoleReplicationEventArgs> VisitorGroupRegistered
Event Type
Type | Description |
---|---|
System.EventHandler<VirtualRoleReplicationEventArgs> |
VisitorGroupUnregistered
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 |
Implements
System.IDisposable