Click or drag to resize
IUnitOfWorkAsync Interface
An asynchronous unit of work pattern implementation

Namespace: AccidentalFish.ApplicationSupport.Core.Repository
Assembly: AccidentalFish.ApplicationSupport.Core (in AccidentalFish.ApplicationSupport.Core.dll) Version: 1.0.4.0 (1.0.4.0)
Syntax
public interface IUnitOfWorkAsync : IDisposable

The IUnitOfWorkAsync type exposes the following members.

Methods
  NameDescription
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodGetRepositoryT
Retrieve a repository that acts within the unit of work
Public methodGetRepositoryAsyncT Obsolete.
Retrieve a repository that acts within the unit of work
Public methodOptimisticRepositoryWinsUpdateAsync(Action)
Using an optimistic concurrency approach attempt to perform the supplied actions within the unit of work saving the changes. This will retry until it succeeds. (Concurrency issues are detected via the DbUpdateConcurrencyException exception).
Public methodOptimisticRepositoryWinsUpdateAsync(Action, Int32)
Using an optimistic concurrency approach attempt to perform the supplied actions within the unit of work saving the changes. This will retry maxRetries times. (Concurrency issues are detected via the DbUpdateConcurrencyException exception).
Public methodSaveAsync
Save the changes made within the unit of work
Top
See Also