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; }
public Task SaveProjectionAsync(ISerializedProjection projection) { UncommitedProjections.Add(projection); return(Task.CompletedTask); }
public static MongoProjection Create(ISerializedProjection projection) { return(new MongoProjection(projection.ProjectionId, projection.Category, BsonDocument.Parse(projection.Projection))); }