Exemplo n.º 1
0
        private async Task RaiseEvent(IPlayerEvent @event)
        {
            try
            {
                await _eventStorage.AppendToStream(this.GetPrimaryKeyLong().ToString(), State.Version + 1, @event);

                State.Apply(@event);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                throw;
            }
        }