Method TryAddVariantAsync
TryAddVariantAsync(FileId, string, IFileProcessingPipelineSelector, CancellationToken)
Tries to add a new file variant (and any nested auto-variants declared by the pipeline) to an existing file in the repository. Returns
null if any declared variant ID in the tree already exists or if any per-variant lock cannot be acquired immediately. The operation is
strict and all-or-nothing: any collision aborts the entire add.
Declaration
public Task<IReadOnlyList<RepoFileInfo>?> TryAddVariantAsync(FileId fileId, string variantId, IFileProcessingPipelineSelector pipeline, CancellationToken cancellationToken = default)
Parameters
Returns
TryAddVariantAsync(FileId, string, string?, IFileProcessingPipelineSelector, CancellationToken)
Tries to add a new file variant (and any nested auto-variants declared by the pipeline) to an existing file in the repository. Returns
null if any declared variant ID in the tree already exists or if any per-variant lock cannot be acquired immediately. The operation is
strict and all-or-nothing: any collision aborts the entire add.
Declaration
public Task<IReadOnlyList<RepoFileInfo>?> TryAddVariantAsync(FileId fileId, string variantId, string? sourceVariantId, IFileProcessingPipelineSelector pipeline, CancellationToken cancellationToken = default)
Parameters
Returns