src/fursvp.data/RepositoryDecorators/RepositoryWithValidation.cs
/// <summary>
/// Permanently removes an existing document representing <see ref="T" /> from the repository if the state change is valid.
/// </summary>
/// <param name="guid">The globally unique identifier for the entity.</param>
/// <returns>An asynchronous <see cref="Task{T}"/>.</returns>
Permanently removes an existing document representing  from the repository if the state change is valid.
Permanently removes an existing document representing from the repository if the state change is valid .
public async Task Delete(Guid guid)
        {
            var entity = await RepositoryRead.GetById(guid).ConfigureAwait(false);
            Validator.ValidateState(entity, default);
            await Decorated.Delete(guid).ConfigureAwait(false);
        }
public async Task Delete ( Guid guid ) { var entity = await RepositoryRead . GetById ( guid ) . ConfigureAwait ( false ) ; Validator . ValidateState ( entity , default ) ; await Decorated . Delete ( guid ) . ConfigureAwait ( false ) ; }
Permanently removes an existing document representing  from the repository if the state change is valid.
Permanently removes an existing document representing from the repository if the state change is valid .
An asynchronous .
An asynchronous .
guid
Guid
The globally unique identifier for the entity.
The globally unique identifier for the entity .