DropBear.Codex.Core 2024.2.34

There is a newer version of this package available.
See the version list below for details.
dotnet add package DropBear.Codex.Core --version 2024.2.34
NuGet\Install-Package DropBear.Codex.Core -Version 2024.2.34
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="DropBear.Codex.Core" Version="2024.2.34" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DropBear.Codex.Core --version 2024.2.34
#r "nuget: DropBear.Codex.Core, 2024.2.34"
#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.
// Install DropBear.Codex.Core as a Cake Addin
#addin nuget:?package=DropBear.Codex.Core&version=2024.2.34

// Install DropBear.Codex.Core as a Cake Tool
#tool nuget:?package=DropBear.Codex.Core&version=2024.2.34

DropBear Codex

DropBear Codex is a .NET library designed to enhance application reliability and data integrity. It introduces a robust system for operation results handling, supporting generic result types with integrated payload data integrity verification via checksums. The library is equipped with custom MessagePack serialization for complex types, ensuring efficient and secure data transfer.

Features

  • Generic result types (Result, Result<T>, and ResultWithPayload<T>) to represent the outcomes of operations clearly.
  • Integrated checksum for data integrity verification in ResultWithPayload<T>.
  • Custom MessagePack formatters for serialization and deserialization of complex and custom types.
  • Extensions for ASP.NET Core and asynchronous programming, facilitating seamless integration.

Getting Started

Follow these instructions to get DropBear Codex running in your project for development and testing purposes.

Prerequisites

  • .NET 6.0 SDK or later
  • An IDE like Visual Studio 2022, VS Code, or Rider

Installing

  1. Add DropBear Codex to your .NET project via NuGet:
dotnet add package DropBear.Codex.Core
  1. Use the library in your project by adding the appropriate using statements:
using DropBear.Codex.Core.ReturnTypes;
using DropBear.Codex.Core.Extensions;

Usage

Basic Usage

Utilize Result and Result<T> for simple operation outcomes:

public Result PerformOperation()
{
    // Operation logic
    return Result.Success();
}

public Result<string> GetOperationData()
{
    // Operation logic
    return Result<string>.Success("Operation data");
}

Advanced Usage with Payload

Use ResultWithPayload<T> for operations that require data integrity checks:

public ResultWithPayload<MyDataType> GetSecureData()
{
    MyDataType data = new MyDataType();
    // Populate data
    return ResultWithPayload<MyDataType>.Success(new Payload<MyDataType>(data));
}

Running the Tests

Run the automated tests for this system using the following command:

dotnet test

Deployment

Refer to .NET deployment best practices for deploying your application with DropBear Codex integrated.

Built With

  • .NET 8 - The development framework@
  • MessagePack - Used for efficient serialization@

Contributing

We welcome contributions! Please submit pull requests or open issues on our GitHub repository.

Versioning

We use SemVer for versioning. For the versions available, see the releases on our repository.

Authors

License

This project is licensed under the GNU Lesser Public License v3 - see the LICENSE file for details.

Acknowledgments

  • Hat tip to anyone whose code was used
  • Inspiration
  • etc
Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on DropBear.Codex.Core:

Package Downloads
DropBear.Codex.Utilities

DropBear Codex Utilities.

DropBear.Codex.StateManagement

The `StateSnapshotManager` library provides a comprehensive solution for managing state snapshots in .NET applications. It supports automatic snapshotting, state reversion, and notifications upon state changes, making it ideal for applications that require historical state management or undo capabilities.

DropBear.Codex.Serialization

This project provides advanced serialization and deserialization capabilities, supporting formats like JSON, MessagePack, and MemoryPack. It includes performance optimizations, error handling, and supports compression and encoding options.

DropBear.Codex.Files

DropBear.Codex.Files is a versatile .NET library designed for efficient file management, offering seamless integration with advanced features such as delta updates for optimized storage and bandwidth usage. Tailored for applications requiring robust file operations, it provides a foundation for both local and cloud storage scenarios, ensuring high performance and scalability. (Advanced features available when paired with DropBear.Codex.DeltaBlobStorage package.)

DropBear.Codex.Hashing

This library provides a flexible and extensible hashing framework, designed for easy integration and usage within .NET applications. It supports a variety of hashing algorithms and offers a fluent API for hasher configurations.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2024.5.9 82 5/19/2024
2024.5.8 80 5/19/2024
2024.5.6 186 5/4/2024
2024.5.5 81 5/4/2024
2024.5.4 106 5/4/2024
2024.5.3 45 5/3/2024
2024.5.2 48 5/3/2024
2024.5.1 50 5/3/2024
2024.4.8 240 4/30/2024
2024.4.5 430 4/17/2024
2024.4.4 83 4/16/2024
2024.4.3 82 4/16/2024
2024.4.1 125 4/13/2024
2024.3.13 271 3/28/2024
2024.3.12 140 3/21/2024
2024.3.11 141 3/16/2024
2024.3.10 89 3/16/2024
2024.3.9 88 3/15/2024
2024.3.6 94 3/15/2024
2024.3.5 99 3/13/2024
2024.3.4 107 3/11/2024
2024.3.1 100 3/2/2024
2024.2.34 109 2/26/2024
2024.2.31 91 2/26/2024
2024.2.30 125 2/22/2024
2024.2.25 112 2/21/2024