Пример #1
0
 public async Task Apply(SomethingDone @event)
 {
     Count++;
     await UpdateByIdAsync <PersistentEntity, string>(@event.Id,
                                                      model =>
     {
         model.Name += ".";
     }).ConfigureAwait(false);
 }
Пример #2
0
        public Task <TestState> Apply(SomethingDone @event)
        {
            Console.Write("S");
            // Console.Write(Environment.CurrentManagedThreadId);

            // Console.Write("|" + Environment.CurrentManagedThreadId);

            var s = new TestState(this)
            {
                SomethingDone = @event.Bla
            };

            return(Task.FromResult(s));
        }