Class DbContextEventInbox<TDbContext>
Inheritance
object
DbContextEventInbox<TDbContext>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Assembly: Volo.Abp.EntityFrameworkCore.dll
Syntax
public class DbContextEventInbox<TDbContext> : IDbContextEventInbox<TDbContext>, IEventInbox where TDbContext : IHasEventInbox
Type Parameters
| Name |
Description |
| TDbContext |
|
Constructors
DbContextEventInbox(IDbContextProvider<TDbContext>, IClock, IOptions<AbpEventBusBoxesOptions>)
Declaration
public DbContextEventInbox(IDbContextProvider<TDbContext> dbContextProvider, IClock clock, IOptions<AbpEventBusBoxesOptions> eventBusBoxesOptions)
Parameters
Properties
Clock
Declaration
protected IClock Clock { get; }
Property Value
DbContextProvider
Declaration
protected IDbContextProvider<TDbContext> DbContextProvider { get; }
Property Value
EventBusBoxesOptions
Declaration
protected AbpEventBusBoxesOptions EventBusBoxesOptions { get; }
Property Value
Methods
DeleteOldEventsAsync()
Declaration
[UnitOfWork]
public virtual Task DeleteOldEventsAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
EnqueueAsync(IncomingEventInfo)
Declaration
[UnitOfWork]
public virtual Task EnqueueAsync(IncomingEventInfo incomingEvent)
Parameters
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
ExistsByMessageIdAsync(string)
Declaration
[UnitOfWork]
public virtual Task<bool> ExistsByMessageIdAsync(string messageId)
Parameters
| Type |
Name |
Description |
| string |
messageId |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<TResult><bool> |
|
GetWaitingEventsAsync(int, CancellationToken)
Declaration
[UnitOfWork]
public virtual Task<List<IncomingEventInfo>> GetWaitingEventsAsync(int maxCount, CancellationToken cancellationToken = default)
Parameters
| Type |
Name |
Description |
| int |
maxCount |
|
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<TResult><System.Collections.Generic.List<T><IncomingEventInfo>> |
|
MarkAsProcessedAsync(Guid)
Declaration
[UnitOfWork]
public virtual Task MarkAsProcessedAsync(Guid id)
Parameters
| Type |
Name |
Description |
| System.Guid |
id |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
Implements
Extension Methods