public void Add(TEntity entity) { var callerInfo = LoggingExtensions.Caller(); _profiler.Profile( () => _writerDelegate.Add(entity), $"{callerInfo} - entity=[{JsonLogging.Serialize(entity)}];" ); }
public void Add(TEntity entity) { WriterDelegate.Add(entity); }
public void Add(TEntity entity) { _writerDelegate.Add(entity); _publisher.Publish(new DataEvent <TEntity>(entity, EventName <TEntity> .Created)); }