CrispyWaffle 10.5.6
See the version list below for details.
dotnet add package CrispyWaffle --version 10.5.6
NuGet\Install-Package CrispyWaffle -Version 10.5.6
<PackageReference Include="CrispyWaffle" Version="10.5.6" />
<PackageVersion Include="CrispyWaffle" Version="10.5.6" />
<PackageReference Include="CrispyWaffle" />
paket add CrispyWaffle --version 10.5.6
#r "nuget: CrispyWaffle, 10.5.6"
#:package CrispyWaffle@10.5.6
#addin nuget:?package=CrispyWaffle&version=10.5.6
#tool nuget:?package=CrispyWaffle&version=10.5.6
CrispyWaffle
The core package of Crispy Waffle, a toolkit for .NET projects.
| Package | CrispyWaffle |
| Install | dotnet add package CrispyWaffle |
| Depends on | Newtonsoft.Json, System.Text.Json, System.Security.Permissions, Tomlyn, YamlDotNet |
Features
- Service locator: a lightweight IoC container with lifetimes and bootstrappers.
- Logging: the
LogConsumerfacade with filters, multiple providers and exception handlers. - Caching: the async
CacheManagerfacade over prioritized cache repositories. - Events and commands: one-to-many event dispatch and one-to-one command dispatch.
- Scheduler: cron-based job scheduling with
JobManager. - Serialization: JSON (Newtonsoft.Json and System.Text.Json), XML, YAML and TOML adapters behind
SerializerFactory. - Cryptography: AES string encryption and MD5, SHA-1, SHA-2 and SHA-3 hashing.
- Template rendering, telemetry, validations and extension methods.
Supported frameworks
This package targets .NET Standard 2.0, .NET Standard 2.1, .NET 8.0, .NET 9.0 and .NET 10.0.
Getting started
CrispyWaffle features are exposed as static facades (LogConsumer, CacheManager, EventsConsumer, CommandsConsumer). They find their collaborators through the ServiceLocator, so register those first.
using CrispyWaffle.Cache;
using CrispyWaffle.Composition;
using CrispyWaffle.Log;
using CrispyWaffle.Log.Adapters;
using CrispyWaffle.Log.Handlers;
using CrispyWaffle.Log.Providers;
ServiceLocator.Register<IConsoleLogAdapter, StandardConsoleLogAdapter>(Lifetime.Singleton);
ServiceLocator.Register<IExceptionHandler, NullExceptionHandler>(Lifetime.Singleton);
// Logging: every message goes to every provider.
LogConsumer.AddProvider<ConsoleLogProvider>().SetLevel(LogLevel.All);
LogConsumer.Info("Application started");
// Caching: writes go to every repository; reads return the first hit in priority order.
CacheManager.AddRepository<MemoryCacheRepository>();
await CacheManager.SetAsync("Crispy Waffle", "app-name");
var name = await CacheManager.GetAsync<string>("app-name");
Events and commands are plain classes implementing IEvent / ICommand, with handlers discovered through the ServiceLocator:
using CrispyWaffle.Events;
public sealed class UserCreatedEvent : IEvent
{
public UserCreatedEvent(string email) => Email = email;
public string Email { get; }
}
public sealed class SendWelcomeEmail : IEventHandler<UserCreatedEvent>
{
public void Handle(UserCreatedEvent args) =>
LogConsumer.Info("Sending welcome e-mail to {0}", args.Email);
}
EventsConsumer.Raise(new UserCreatedEvent("someone@example.com"));
See the getting started guide for the full walkthrough.
Integration packages
| Package | Purpose |
|---|---|
| CrispyWaffle.Configuration | Connection and credential types shared by the connectors. |
| CrispyWaffle.Redis | Redis cache repository, Pub/Sub log provider and telemetry client. |
| CrispyWaffle.RabbitMQ | RabbitMQ messaging and log provider. |
| CrispyWaffle.ElasticSearch | Elasticsearch log provider and index helpers. |
| CrispyWaffle.Log4Net | Bridge from LogConsumer to log4net. |
| CrispyWaffle.LogStream | Log provider for a LogStream server. |
| CrispyWaffle.EventLog | Windows Event Log provider. |
| CrispyWaffle.Elmah | ELMAH exception handler. |
| CrispyWaffle.Utils | FTP client and SMTP mailer. |
| CrispyWaffle.I18n.PtBr | Brazilian Portuguese conversions (phone numbers, documents, zip codes). |
Documentation
License
Released under the MIT License.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. 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 is compatible. 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 is compatible. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Newtonsoft.Json (>= 13.0.4)
- System.Security.Permissions (>= 10.0.12)
- System.Text.Json (>= 10.0.12)
- Tomlyn (>= 2.10.1)
- YamlDotNet (>= 18.1.0)
-
.NETStandard 2.1
- Newtonsoft.Json (>= 13.0.4)
- System.Security.Permissions (>= 10.0.12)
- System.Text.Json (>= 10.0.12)
- Tomlyn (>= 2.10.1)
- YamlDotNet (>= 18.1.0)
-
net10.0
- Newtonsoft.Json (>= 13.0.4)
- System.Security.Permissions (>= 10.0.12)
- Tomlyn (>= 2.10.1)
- YamlDotNet (>= 18.1.0)
-
net8.0
- Newtonsoft.Json (>= 13.0.4)
- System.Security.Permissions (>= 10.0.12)
- System.Text.Json (>= 10.0.12)
- Tomlyn (>= 2.10.1)
- YamlDotNet (>= 18.1.0)
-
net9.0
- Newtonsoft.Json (>= 13.0.4)
- System.Security.Permissions (>= 10.0.12)
- System.Text.Json (>= 10.0.12)
- Tomlyn (>= 2.10.1)
- YamlDotNet (>= 18.1.0)
NuGet packages (15)
Showing the top 5 NuGet packages that depend on CrispyWaffle:
| Package | Downloads |
|---|---|
|
CrispyWaffle.Configuration
The CrispyWaffle configuration package |
|
|
Sankhya
The Sankhya (ERP) SDK. A .NET client to consume Sankhya web service |
|
|
VTEX.Health
The VTEX platform (PaaS) (e-commerce) SDK. A .NET client to consume VTEX APIs for both Core and Framework projects |
|
|
VTEX
The VTEX platform (PaaS) (e-commerce) SDK. A .NET client to consume VTEX APIs for both Core and Framework projects |
|
|
CrispyWaffle.Elmah
The CrispyWaffle ELMAH bridge package |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 10.5.12 | 0 | 11/17/2026 |
| 10.5.11 | 0 | 11/17/2026 |
| 10.5.10 | 0 | 11/17/2026 |
| 10.5.9 | 0 | 11/17/2026 |
| 10.5.8 | 290 | 11/15/2026 |
| 10.5.7 | 224 | 11/15/2026 |
| 10.5.6 | 216 | 11/15/2026 |
| 10.5.5 | 217 | 11/15/2026 |
| 10.5.4 | 218 | 11/15/2026 |
| 10.5.3 | 215 | 11/15/2026 |
| 10.5.2 | 219 | 11/15/2026 |
| 10.5.1 | 224 | 11/15/2026 |
| 10.5.0 | 230 | 11/15/2026 |
| 10.4.20 | 218 | 11/13/2026 |
| 10.4.19 | 202 | 11/13/2026 |
| 10.4.18 | 425 | 11/10/2026 |
| 10.4.17 | 593 | 11/8/2026 |
| 10.4.16 | 435 | 11/6/2026 |
| 10.4.15 | 400 | 11/6/2026 |
| 10.4.14 | 425 | 11/5/2026 |
CancellationToken support in ServiceLocator