DataScopeCommitChangesAsync Method (FuncIUnitOfWorkCore, CancellationToken, TaskBoolean, CancellationToken) |
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.9.0.0 (5.9.0)
Syntax public Task<bool> CommitChangesAsync(
Func<IUnitOfWorkCore, CancellationToken, Task<bool>> commitUnitOfWorkFunc,
CancellationToken cancellationToken
)
Public Function CommitChangesAsync (
commitUnitOfWorkFunc As Func(Of IUnitOfWorkCore, CancellationToken, Task(Of Boolean)),
cancellationToken As CancellationToken
) As Task(Of Boolean)
Parameters
- commitUnitOfWorkFunc
- Type: SystemFuncIUnitOfWorkCore, CancellationToken, TaskBoolean
The func which is called to commit the work in the Unit of work which is passed into the func by
CommitChanges. The func specified has to be an async lambda. The func also gets passed the cancellation token passed to this method - cancellationToken
- Type: System.ThreadingCancellationToken
The cancellation token, which is passed to the commitUnitOfWorkFunc
Return Value
Type:
TaskBooleanthe result returned by commitUnitOfWorkFunc after it gets called with the Unit of Work to commit
See Also