EntityEventService Class
Assembly: PTS.EntityLayer.Events.dll
Syntax
public class EntityEventService : EntityService, IEntityEventService, IStartupDependency
Inheritance
System.Object
EntityEventService
Constructors
EntityEventService(IEntityServiceScope)
Declaration
public EntityEventService(IEntityServiceScope container)
Parameters
Properties
CurrentSender
Declaration
public IEntityEventSender CurrentSender { get; }
Property Value
Methods
AddHandler(EntityEventHandler)
Declaration
public void AddHandler(EntityEventHandler handler)
Parameters
AddHandlerRange(IEnumerable<EntityEventHandler>)
Declaration
public void AddHandlerRange(IEnumerable<EntityEventHandler> collection)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<EntityEventHandler> |
collection |
|
For<TEntity>()
Declaration
public EntityEventHandler<TEntity> For<TEntity>()
Returns
Type Parameters
HandleEvent(EntityEntryEventArgs, IEntityEventSender)
Declaration
public void HandleEvent(EntityEntryEventArgs args, IEntityEventSender sender)
Parameters
Type |
Name |
Description |
Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntryEventArgs |
args |
|
IEntityEventSender |
sender |
|
MakeFor<TEntity>()
Declaration
public EntityEventHandler<TEntity> MakeFor<TEntity>()
Returns
Type Parameters
RemoveSender()
Declaration
public void RemoveSender()
SetSender(IEntityEventSender)
Declaration
public void SetSender(IEntityEventSender sender)
Parameters
Start()
Declaration
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Extension Methods