src/fursvp.data/RepositoryDecorators/CachingRepository.cs
/// <summary>
/// Persists to the repository and to the cache a new document representing the entity by exposing the decorated method.
/// </summary>
/// <param name="entity">The entity to persist to the repository.</param>
/// <returns>An asynchronous <see cref="Task{T}"/>.</returns>
Persists to the repository and to the cache a new document representing the entity by exposing the decorated method.
Persists to the repository and to the cache a new document representing the entity by exposing the decorated method .
public async Task Insert(T entity)
        {
            await Decorated.Insert(entity).ConfigureAwait(false);
            CacheCopyOfEntity(entity);
        }
public async Task Insert ( T entity ) { await Decorated . Insert ( entity ) . ConfigureAwait ( false ) ; CacheCopyOfEntity ( entity ) ; }
Persists to the repository and to the cache a new document representing the entity by exposing the decorated method.
Persists to the repository and to the cache a new document representing the entity by exposing the decorated method .
An asynchronous .
An asynchronous .
entity
T
The entity to persist to the repository.
The entity to persist to the repository .