CloudinaryUtils 1.0.0
dotnet add package CloudinaryUtils --version 1.0.0
NuGet\Install-Package CloudinaryUtils -Version 1.0.0
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="CloudinaryUtils" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CloudinaryUtils" Version="1.0.0" />
<PackageReference Include="CloudinaryUtils" />
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 CloudinaryUtils --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CloudinaryUtils, 1.0.0"
#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 CloudinaryUtils@1.0.0
#: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=CloudinaryUtils&version=1.0.0
#tool nuget:?package=CloudinaryUtils&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
CloudinaryUtils
A reusable .NET library for integrating Cloudinary with your ASP.NET Core applications.
Provides easy dependency injection setup and a ready-to-use health check for Cloudinary availability.
Features
- Strongly-typed configuration via
CloudinarySettings - Extension methods for registering Cloudinary as a singleton
- Cloudinary health check for ASP.NET Core Health Checks, with customizable name and tags
Installation
You can add the package via NuGet:
dotnet add package CloudinaryUtils
Usage
1. Configure your appsettings.json:
{
"Cloudinary": {
"CloudName": "your-cloud-name",
"ApiKey": "your-api-key",
"ApiSecret": "your-api-secret"
}
}
2. Register Cloudinary and HealthCheck in your Program.cs or Startup.cs:
using CloudinaryUtils.DependencyInjection;
var builder = WebApplication.CreateBuilder(args);
// Register Cloudinary (reads "Cloudinary" section by default)
builder.Services.AddCloudinaryFromConfig(builder.Configuration);
// Add HealthChecks and Cloudinary health check (customize name/tags as needed)
builder.Services.AddHealthChecks()
.AddCloudinaryHealthCheck(name: "cloudinary", tags: new[] { "external", "ready" });
API Reference
CloudinarySettings
public class CloudinarySettings
{
public required string CloudName { get; set; }
public required string ApiKey { get; set; }
public required string ApiSecret { get; set; }
}
Extension Methods
AddCloudinaryFromConfig
- Registers Cloudinary as a singleton using configuration section (default:
"Cloudinary"). - Signature:
IServiceCollection AddCloudinaryFromConfig( this IServiceCollection services, IConfiguration configuration, string sectionName = "Cloudinary")
- Registers Cloudinary as a singleton using configuration section (default:
AddCloudinaryHealthCheck
- Adds a Cloudinary health check with optional name and tags.
- Signature:
IHealthChecksBuilder AddCloudinaryHealthCheck( this IHealthChecksBuilder builder, string name = "cloudinary", params string[] tags)
Health Check
The health check will attempt to contact Cloudinary using your credentials and report the status through ASP.NET Core Health Checks infrastructure.
License
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- CloudinaryDotNet (>= 1.25.0)
- Microsoft.Extensions.Configuration (>= 6.0.0)
- Microsoft.Extensions.DependencyInjection (>= 6.0.0)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 6.0.0)
- Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (>= 6.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 6.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 321 | 5/21/2025 |