Exemplo n.º 1
0
        public async Task Apply(TestAggregateCreated @event)
        {
            Count++;
            var s = new PersistentEntity
            {
                Streamname = @event.Id,
                Name       = @event.Name
            };

            await readRepository.InsertAsync(s).ConfigureAwait(false);
        }
Exemplo n.º 2
0
        public Task <TestState> Apply(TestAggregateCreated @event)
        {
            Console.Write("C");
            // Console.Write(Environment.CurrentManagedThreadId);
            // Console.Write("|" + Environment.CurrentManagedThreadId);

            var s = new TestState(this)
            {
                StreamName = @event.Id,
                Name       = @event.Name
            };

            return(Task.FromResult(s));
        }