public void AddRange(IEnumerable <TEntity> entities) { var callerInfo = LoggingExtensions.Caller(); _profiler.Profile( () => _writerDelegate.AddRange(entities), $"{callerInfo} - entities=[{JsonLogging.Serialize(entities)}];" ); }
public void Remove(TEntity entity) { var callerInfo = LoggingExtensions.Caller(); _profiler.Profile( () => _writerDelegate.Remove(entity), $"{callerInfo} - entity=[{JsonLogging.Serialize(entity)}];" ); }
public IEnumerable <TEntity> Find(Expression <Func <TEntity, bool> > predicate) { var callerInfo = LoggingExtensions.Caller(); return(_profiler.Profile( () => _readerDelegate.GetAll(), $"{callerInfo} - predicate=[{predicate}];" )); }
public IEnumerable <TEntity> GetAll() { var callerInfo = LoggingExtensions.Caller(); return(_profiler.Profile( () => _readerDelegate.GetAll(), callerInfo )); }
public TEntity Get(long id) { var callerInfo = LoggingExtensions.Caller(); return(_profiler.Profile( () => _readerDelegate.Get(id), $"{callerInfo} - id=[{id}]" )); }
public virtual void ReadAll(DataEvent <IEnumerable <TEntity> > dataEvent) { var callerInfo = LoggingExtensions.Caller(); Log.Info($"{callerInfo} - entity=[{typeof(TEntity).Name}];"); }
public virtual void Updated(DataEvent <TEntity> dataEvent) { var callerInfo = LoggingExtensions.Caller(); Log.Info($"{callerInfo} - {DataEventInformation(dataEvent)}"); }
public virtual void Find(DataEvent <TEntity> dataEvent) { var callerInfo = LoggingExtensions.Caller(); Log.Info($"{callerInfo} - entity=[{nameof(TEntity)}];"); }