Soenneker.Blob.Copy 11.0.1139

Prefix Reserved
dotnet add package Soenneker.Blob.Copy --version 11.0.1139
                    
NuGet\Install-Package Soenneker.Blob.Copy -Version 11.0.1139
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Blob.Copy" Version="11.0.1139" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Blob.Copy" Version="11.0.1139" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Blob.Copy" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Blob.Copy --version 11.0.1139
                    
#r "nuget: Soenneker.Blob.Copy, 11.0.1139"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Blob.Copy@11.0.1139
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Blob.Copy&version=11.0.1139
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Blob.Copy&version=11.0.1139
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

Soenneker.Blob.Copy

Starts an Azure server-side blob copy, waits for completion, and skips missing sources, self-copies, and destinations with the same content hash.

Install

dotnet add package Soenneker.Blob.Copy

Register the stateless utility in Program.cs:

using Soenneker.Blob.Copy.Registrars;

builder.Services.AddBlobCopyAsSingleton();

Scoped registration is also available.

Copy a blob

using Azure.Storage.Blobs.Models;
using Soenneker.Blob.Copy.Abstract;

CopyFromUriOperation? operation = await blobCopy.ServerSideBlobCopy(
    sourceBlob,
    destinationBlob,
    cancellationToken);

if (operation is null)
{
    // The source was missing, the URIs targeted the same blob,
    // or both blobs exposed the same non-empty content hash.
}

The destination container is created privately if it does not exist. An existing destination blob is replaced by the Azure copy operation; it is not deleted first, so a failure to start the copy does not create an avoidable delete-before-copy gap.

Source authorization

Azure Storage performs the transfer, so the service must be able to read the source URI:

  • If source.CanGenerateSasUri is true, the utility generates a read-only SAS valid for one hour.
  • Otherwise, the source URI is passed as-is. It must already contain usable authorization or identify a publicly readable blob.

The source credential must also allow reading properties because the utility checks existence and may compare content hashes. The destination client must allow container creation, property reads, and blob writes.

Full source and destination query strings are never written to this utility's logs, preventing SAS tokens from being exposed there.

Result and failure behavior

  • The returned CopyFromUriOperation has reached a terminal status when the method returns.

  • A missing source or skipped copy returns null; it is not treated as an exception.

  • Matching content is skipped only when both blobs expose non-empty content hashes. If hashes are absent or properties cannot be compared, the copy proceeds.

  • The utility polls for up to five minutes. A timeout stops waiting but does not guarantee Azure stopped the server-side copy.

  • A non-success Azure copy status throws InvalidOperationException; Azure request failures propagate as RequestFailedException.

  • Cancellation stops pending work; it does not undo work that has already completed.

  • Cancellation after Azure accepts the copy may leave a server-side operation running. Inspect or abort the destination copy explicitly when that distinction matters.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Soenneker.Blob.Copy:

Package Downloads
Soenneker.Blob.Suite

A concoction of Azure Blob Storage utilities and libraries

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.1139 168 11/11/2026
11.0.1138 103 11/11/2026
11.0.1136 97 11/11/2026
11.0.1135 109 11/10/2026
11.0.1134 419 11/3/2026
11.0.1133 227 10/27/2026
11.0.1132 164 10/26/2026
11.0.1131 132 10/26/2026
11.0.1130 128 10/26/2026
11.0.1128 120 10/26/2026
4.0.1127 134 10/26/2026
4.0.1126 598 10/15/2026
4.0.1125 140 10/14/2026
4.0.1124 126 10/14/2026
4.0.1123 133 10/14/2026
4.0.1121 117 10/14/2026
4.0.1120 99 10/14/2026
4.0.1114 142 10/13/2026
4.0.1111 132 10/12/2026
4.0.1109 114 10/12/2026
Loading failed

Updated Multiple NuGet packages