src/fursvp.data/RepositoryDecorators/RepositoryWithAuthorization.cs
/// <summary>
/// Permanently removes an existing document representing <see ref="T" /> from the repository if the user is authorized.
/// </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 user is authorized.
Permanently removes an existing document representing from the repository if the user is authorized .
public async Task Delete(Guid guid)
        {
            var entity = await RepositoryRead.GetById(guid).ConfigureAwait(false);
            Authorize.WriteAuthorize(entity, default);
            await Decorated.Delete(guid).ConfigureAwait(false);
        }
public async Task Delete ( Guid guid ) { var entity = await RepositoryRead . GetById ( guid ) . ConfigureAwait ( false ) ; Authorize . WriteAuthorize ( entity , default ) ; await Decorated . Delete ( guid ) . ConfigureAwait ( false ) ; }
Permanently removes an existing document representing  from the repository if the user is authorized.
Permanently removes an existing document representing from the repository if the user is authorized .
An asynchronous .
An asynchronous .
guid
Guid
The globally unique identifier for the entity.
The globally unique identifier for the entity .