Axum.MasunoIntegrationsLibrary 1.0.2

dotnet add package Axum.MasunoIntegrationsLibrary --version 1.0.2
                    
NuGet\Install-Package Axum.MasunoIntegrationsLibrary -Version 1.0.2
                    
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="Axum.MasunoIntegrationsLibrary" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Axum.MasunoIntegrationsLibrary" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="Axum.MasunoIntegrationsLibrary" />
                    
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 Axum.MasunoIntegrationsLibrary --version 1.0.2
                    
#r "nuget: Axum.MasunoIntegrationsLibrary, 1.0.2"
                    
#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 Axum.MasunoIntegrationsLibrary@1.0.2
                    
#: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=Axum.MasunoIntegrationsLibrary&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=Axum.MasunoIntegrationsLibrary&version=1.0.2
                    
Install as a Cake Tool

MasunoIntegrationsLibrary

A .NET Core 3.1 library that provides event stream forwarding capabilities for integrating Axum/DPlus systems with Masuno integrations. This library acts as an event forwarder, processing various business events and forwarding them to external Masuno integration endpoints.

Overview

The MasunoIntegrationsLibrary is designed to handle real-time event streaming between different business systems (Chess, Orders360, Planning Web, and Productivity) and forward these events to Masuno integrations for further processing. It uses an event-driven architecture with stream consumers that filter, validate, and forward relevant events.

Architecture

The library follows a Event Forwarder pattern where each consumer:

  1. Filters Events: Determines which events should be processed based on business rules
  2. Validates Context: Ensures the organization and settings are appropriate for processing
  3. Forwards Events: Sends filtered events to the Masuno integrations API
  4. Handles Failures: Manages retry logic and failure scenarios

Configuration

Required Settings

{
  "MasunoIntegrationsEndpoint": "https://your-masuno-endpoint.com",
  "MasunoIntegrationsToken": "your-authorization-token",
  "AxumCentralMasunoTenantsCodes": "tenant1,tenant2,tenant3"
}

Dependency Injection Setup

//Use the extension method
MasunoIntegrationsLibrary.StartupServicesConfig.ConfigureServices(services, configuration, false);

Event Flow

  1. Event Generation: Business systems generate events (orders, invoices, CICO, etc.)
  2. Stream Processing: Consumers receive events in batches
  3. Filtering: Each consumer applies business rules to determine relevance
  4. Validation: Organization settings and permissions are checked
  5. Forwarding: Valid events are forwarded to Masuno integrations
  6. Retry Logic: Failed events are retried according to consumer configuration
  7. Error Handling: Events that fail all retries are handled appropriately

Error Handling

The library implements robust error handling:

  • Retry Mechanism: Configurable retry attempts per consumer
  • Failure Behaviors:
    • Continue: Process next events despite failures
    • Stop: Halt processing on persistent failures
  • Logging: Comprehensive logging for troubleshooting
  • Circuit Breaker: Prevents cascade failures

Monitoring

Key Metrics

  • Event processing rates per consumer
  • Retry counts and failure rates
  • API response times to Masuno endpoints
  • Organization-specific processing volumes

Logging

The library provides structured logging for:

  • Event processing steps
  • API call results
  • Error conditions
  • Performance metrics

Dependencies

  • .NET Core 3.1
  • Axum.Common (v1.1.15): Core Axum functionality
  • AxumConnectorCommon (v1.1.21): Connector utilities and models
  • Refit: HTTP API client
  • Newtonsoft.Json: JSON serialization
  • LazyCache: Caching infrastructure

Usage Example

// Configure services
public void ConfigureServices(IServiceCollection services)
{
    MasunoIntegrationsLibrary.StartupServicesConfig.ConfigureServices(
        services, Configuration, false);
    
    // Register consumers
    services.AddScoped<ChessOrdersConsumerForwarder>();
    services.AddScoped<Orders360PedidosConsumer>();
    // ... other consumers
}

// Use in stream processing
var consumer = serviceProvider.GetService<Orders360PedidosConsumer>();
var events = GetEventsFromStream();
consumer.Consume(events);

Contributing

When adding new consumers:

  1. Extend EventHookSenderConsumer
  2. Implement required abstract methods
  3. Add appropriate filtering in ShouldHandle()
  4. Use IMasunoIntegrationsStreamingApi for forwarding
  5. Add consumer to MasunoIntegrationsConsumers enum
  6. Configure appropriate retry and timing settings

License

This project is part of the Greencode LLC ecosystem and follows the same licensing terms.

Product 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 was computed.  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. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.2 38 9/29/2025
1.0.1 126 9/25/2025
1.0.0 125 9/25/2025