Interface IUnitOfWork
Assembly: Volo.Abp.Uow.dll
Syntax
public interface IUnitOfWork : IDatabaseApiContainer, IServiceProviderAccessor, ITransactionApiContainer, IDisposable
Properties
Id
Declaration
Property Value
IsCompleted
Declaration
bool IsCompleted { get; }
Property Value
IsDisposed
Declaration
Property Value
IsReserved
Declaration
Property Value
Items
Declaration
Dictionary<string, object> Items { get; }
Property Value
Options
Declaration
IAbpUnitOfWorkOptions Options { get; }
Property Value
Outer
Declaration
IUnitOfWork? Outer { get; }
Property Value
ReservationName
Declaration
string? ReservationName { get; }
Property Value
Methods
AddOrReplaceDistributedEvent(UnitOfWorkEventRecord, Predicate<UnitOfWorkEventRecord>?)
Declaration
void AddOrReplaceDistributedEvent(UnitOfWorkEventRecord eventRecord, Predicate<UnitOfWorkEventRecord>? replacementSelector = null)
Parameters
AddOrReplaceLocalEvent(UnitOfWorkEventRecord, Predicate<UnitOfWorkEventRecord>?)
Declaration
void AddOrReplaceLocalEvent(UnitOfWorkEventRecord eventRecord, Predicate<UnitOfWorkEventRecord>? replacementSelector = null)
Parameters
CompleteAsync(CancellationToken)
Declaration
Task CompleteAsync(CancellationToken cancellationToken = default)
Parameters
Returns
Initialize(AbpUnitOfWorkOptions)
Declaration
void Initialize(AbpUnitOfWorkOptions options)
Parameters
OnCompleted(Func<Task>)
Declaration
void OnCompleted(Func<Task> handler)
Parameters
Type |
Name |
Description |
Func<Task> |
handler |
|
Reserve(string)
Declaration
void Reserve(string reservationName)
Parameters
Type |
Name |
Description |
string |
reservationName |
|
RollbackAsync(CancellationToken)
Declaration
Task RollbackAsync(CancellationToken cancellationToken = default)
Parameters
Returns
SaveChangesAsync(CancellationToken)
Declaration
Task SaveChangesAsync(CancellationToken cancellationToken = default)
Parameters
Returns
SetOuter(IUnitOfWork?)
Declaration
void SetOuter(IUnitOfWork? outer)
Parameters
Events
Disposed
Declaration
event EventHandler<UnitOfWorkEventArgs> Disposed
Event Type
Failed
Declaration
event EventHandler<UnitOfWorkFailedEventArgs> Failed
Event Type
Extension Methods