File tree 1 file changed +0
-8
lines changed
src/Learning.EventStore/Domain 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change 3
3
using System . Collections . Generic ;
4
4
using System . Linq ;
5
5
using System . Threading . Tasks ;
6
- using Learning . EventStore . Common ;
7
- using Learning . EventStore . Common . Exceptions ;
8
6
using Learning . EventStore . Domain . Exceptions ;
9
- using Learning . EventStore . Logging ;
10
- using RedLockNet ;
11
7
12
8
namespace Learning . EventStore . Domain
13
9
{
14
10
public class Session : ISession
15
11
{
16
12
private readonly IRepository _repository ;
17
13
private readonly ConcurrentDictionary < string , AggregateDescriptor > _trackedAggregates ;
18
- private readonly ILog _logger ;
19
- private readonly object _commitLock = new object ( ) ;
20
14
21
15
public Session ( IRepository repository )
22
16
{
23
17
_repository = repository ;
24
18
_trackedAggregates = new ConcurrentDictionary < string , AggregateDescriptor > ( ) ;
25
- _logger = LogProvider . GetCurrentClassLogger ( ) ;
26
19
}
27
20
28
-
29
21
public void Add < T > ( T aggregate ) where T : AggregateRoot
30
22
{
31
23
AddAsync ( aggregate ) . GetAwaiter ( ) . GetResult ( ) ;
You can’t perform that action at this time.
0 commit comments