net3000.servicecoordinator 1.0.0

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

Net3000.ServiceCoordinator

Overview

The Net3000.ServiceCoordinator library provides comprehensive API connection management and service orchestration capabilities for Net3000 solutions. This library serves as a central coordination hub for managing various API integrations, handling service dependencies, and orchestrating complex workflows across multiple services.

Features

  • API Connection Management: Centralized management of API connections and credentials
  • Service Orchestration: Coordinate workflows across multiple services and APIs
  • Dependency Management: Handle service dependencies and execution order
  • Error Handling: Comprehensive error handling and retry logic
  • Monitoring: Service health monitoring and performance tracking
  • Configuration Management: Centralized configuration for multiple services

Installation

dotnet add package net3000.servicecoordinator

Dependencies

  • Google.Apis.YouTube.v3 (v1.70.0.3847)
  • Microsoft.EntityFrameworkCore (v9.0.9)
  • Microsoft.EntityFrameworkCore.SqlServer (v9.0.9)
  • Microsoft.Extensions.Configuration (v9.0.9)
  • System.IdentityModel.Tokens.Jwt (v8.14.0)

Configuration

Add your service coordination settings to your configuration:

{
  "ServiceCoordinator": {
    "DatabaseConnectionString": "your-database-connection-string",
    "DefaultTimeout": 30000,
    "RetryAttempts": 3,
    "HealthCheckInterval": 60000
  }
}

Usage

Basic Setup

using net3000.ApiConnections;

// Initialize the service coordinator
var coordinator = new ServiceCoordinator(configuration);

Managing API Connections

// Register a new API connection
await coordinator.RegisterApiConnectionAsync(
    serviceName: "Facebook",
    apiKey: "your-api-key",
    apiSecret: "your-api-secret",
    baseUrl: "https://graph.facebook.com/v18.0"
);

// Get API connection details
var connection = await coordinator.GetApiConnectionAsync("Facebook");

// Update API credentials
await coordinator.UpdateApiConnectionAsync(
    serviceName: "Facebook",
    newCredentials: new Dictionary<string, string>
    {
        { "ApiKey", "new-api-key" },
        { "ApiSecret", "new-api-secret" }
    }
);

Service Orchestration

// Execute a coordinated workflow
var workflowResult = await coordinator.ExecuteWorkflowAsync(
    workflowName: "SocialMediaPost",
    parameters: new Dictionary<string, object>
    {
        { "Content", "Hello World!" },
        { "Platforms", new[] { "Facebook", "Twitter", "LinkedIn" } }
    }
);

// Execute services in sequence
var sequenceResult = await coordinator.ExecuteSequenceAsync(
    services: new[] { "UserAuth", "DataValidation", "ContentProcessing" },
    parameters: workflowParameters
);

API Reference

ServiceCoordinator Class

Main service class for API coordination and orchestration.

Methods
  • RegisterApiConnectionAsync() - Register new API connection
  • GetApiConnectionAsync() - Retrieve API connection details
  • UpdateApiConnectionAsync() - Update API credentials
  • RemoveApiConnectionAsync() - Remove API connection
  • ExecuteWorkflowAsync() - Execute coordinated workflow
  • ExecuteSequenceAsync() - Execute services in sequence
  • ExecuteParallelAsync() - Execute services in parallel
  • GetServiceHealthAsync() - Check service health status
  • MonitorServicesAsync() - Monitor multiple services

Workflow Management

  • Workflow Definition: Define complex workflows with dependencies
  • Conditional Execution: Execute services based on conditions
  • Error Handling: Comprehensive error handling and rollback capabilities
  • Performance Monitoring: Track execution times and performance metrics

Service Health Monitoring

  • Health Checks: Regular health checks for registered services
  • Performance Metrics: Track response times and success rates
  • Alert Management: Configure alerts for service failures
  • Dashboard Integration: Integration with monitoring dashboards

Models

  • ApiConnection - API connection configuration
  • WorkflowDefinition - Workflow configuration model
  • ServiceHealth - Service health status
  • ExecutionResult - Workflow execution result
  • PerformanceMetrics - Service performance data

Error Handling

Comprehensive error handling with detailed error messages and retry logic. All methods include proper exception handling and return standardized response objects.

Retry Logic

  • Configurable retry attempts
  • Exponential backoff for failed requests
  • Circuit breaker pattern for failing services
  • Timeout management for long-running operations

Security Features

  • Secure credential storage and encryption
  • API key rotation and management
  • Access control and permissions
  • Audit logging for all operations

Monitoring and Logging

  • Comprehensive logging for all operations
  • Performance metrics collection
  • Error tracking and alerting
  • Integration with monitoring systems

Testing

Use the test environment for development:

  • Mock API endpoints for testing
  • Test database for configuration storage
  • Simulated service responses for workflow testing

License

This library is proprietary to Net3000. Usage is restricted to Net3000.ca solutions and authorized affiliates. Redistribution, sublicensing, or integration with third-party products outside the Net3000 ecosystem is prohibited without written consent from Net3000.

Support

For support and questions, contact the Net3000 development team or visit net3000.ca.

Changelog

v1.0.0

  • Initial release with API connection management capabilities
  • Service orchestration and workflow management
  • Health monitoring and performance tracking
  • Comprehensive error handling and retry logic
Product Compatible and additional computed target framework versions.
.NET 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 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.

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 98 10/4/2025

Initial release of Net3000 Service Coordinator with API connection management and service orchestration.