Line data Source code
1 : namespace Cqrs.Services
2 : {
3 : public interface IUnitOfWorkService
4 : {
5 : /// <summary>
6 : /// Informs the service of the object that will be committing the UnitOfWork.
7 : /// </summary>
8 : /// <returns>
9 : /// true if the provided <paramref name="commiter"/> is accepted as the committer, false otherwise.
10 : /// </returns>
11 1 : bool SetCommitter(object commiter);
12 :
13 : /// <summary>
14 : /// Commits the UnitOfWork if the provided <paramref name="commiter"/> is the Committer.
15 : /// </summary>
16 : /// <returns>
17 : /// true if the provided <paramref name="commiter"/> is the Committer, false otherwise.
18 : /// </returns>
19 1 : bool Commit(object commiter);
20 : }
21 : }
|