Exemple #1
0
        public Task SaveProjectionAsync(ISerializedProjection projection)
        {
            var key = new ProjectionKey(projection.ProjectionId, projection.Category);

            if (!_uncommitedProjections.ContainsKey(key))
            {
                _uncommitedProjections.Add(key, null);
            }

            _uncommitedProjections[key] = projection.Projection;

            return(Task.CompletedTask);
        }
        public async Task SaveProjectionAsync(ISerializedProjection projection)
        {
            await _eventStore.SaveProjectionAsync(projection);

            CalledMethods |= EventStoreMethods.SaveAggregateProjection;
        }
Exemple #3
0
        public Task SaveProjectionAsync(ISerializedProjection projection)
        {
            UncommitedProjections.Add(projection);

            return(Task.CompletedTask);
        }
Exemple #4
0
 public static MongoProjection Create(ISerializedProjection projection)
 {
     return(new MongoProjection(projection.ProjectionId, projection.Category, BsonDocument.Parse(projection.Projection)));
 }