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; } }
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; } }