VOOZH about

URL: https://www.nuget.org/packages/Orion.Core.Server/

⇱ NuGet Gallery | Orion.Core.Server 0.30.1




👁 Image
Orion.Core.Server 0.30.1

dotnet add package Orion.Core.Server --version 0.30.1
 
 
NuGet\Install-Package Orion.Core.Server -Version 0.30.1
 
 
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="Orion.Core.Server" Version="0.30.1" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Orion.Core.Server" Version="0.30.1" />
 
Directory.Packages.props
<PackageReference Include="Orion.Core.Server" />
 
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 Orion.Core.Server --version 0.30.1
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Orion.Core.Server, 0.30.1"
 
 
#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 Orion.Core.Server@0.30.1
 
 
#: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=Orion.Core.Server&version=0.30.1
 
Install as a Cake Addin
#tool nuget:?package=Orion.Core.Server&version=0.30.1
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Orion.Core.Server

👁 NuGet Version
👁 License
👁 .NET

Server-side core functionality for the Orion IRC Server project.

IRC is not dead, long live IRC!

🔍 Frontend Developers Wanted!

I'm looking for frontend developers interested in creating a modern web admin interface and web-based IRC client for Orion IRC Server. Experience with React desired!

If interested, please open an issue or contact us via GitHub.


About

Orion.Core.Server provides the essential server-side infrastructure for building a full-featured IRC server. This library includes services, interfaces, configuration handling, event dispatching, and the modular architecture that makes Orion IRC Server flexible and extensible.

Installation

dotnet add package Orion.Core.Server

a Or using the Package Manager Console:

Install-Package Orion.Core.Server

Key Features

  • Modular Architecture: Build server components independently and register them during startup
  • Extensible Service Container: Easy-to-use dependency injection system
  • Event System: Built-in publish/subscribe event system using HyperCube.Postman
  • Configuration Management: YAML-based configuration with automatic file handling
  • Diagnostic Services: Performance metrics and system diagnostics
  • Process Queue: Controlled processing of tasks with statistics
  • Scheduler: Time-based task execution system
  • JavaScript Scripting Engine: Extend the server with JavaScript
  • Text Templating: Template processing with variable support

Architecture

Orion.Core.Server is designed with a modular, service-oriented architecture:

  • Services: Core functionality exposed through interfaces
  • Modules: Components that register services with the container
  • Events: Communication between loosely coupled components
  • Configuration: Hierarchical, section-based server configuration
  • Command Listeners: Process incoming IRC commands and events

Examples

Creating a Module

using Orion.Core.Server.Extensions;
using Orion.Core.Server.Interfaces.Modules;

public class MyModule : IOrionContainerModule
{
 public IServiceCollection RegisterServices(IServiceCollection services)
 {
 return services
 .AddService<IMyService, MyService>()
 .AddIrcCommand<MyCommand>();
 }
}

Creating a Service

using Orion.Core.Server.Interfaces.Services.Base;

public interface IMyService : IOrionService
{
 Task DoSomethingAsync();
}

public class MyService : IMyService, IOrionStartService
{
 private readonly ILogger _logger;

 public MyService(ILogger<MyService> logger)
 {
 _logger = logger;
 }

 public Task DoSomethingAsync()
 {
 _logger.LogInformation("Doing something");
 return Task.CompletedTask;
 }

 public Task StartAsync(CancellationToken cancellationToken = default)
 {
 _logger.LogInformation("Service starting");
 return Task.CompletedTask;
 }

 public Task StopAsync(CancellationToken cancellationToken = default)
 {
 _logger.LogInformation("Service stopping");
 return Task.CompletedTask;
 }
}

Working with Events

using HyperCube.Postman.Interfaces.Services;
using Orion.Core.Server.Events.Server;

// Publishing an event
await _hyperPostmanService.PublishAsync(new ServerReadyEvent());

// Subscribing to events
public class MyEventHandler : ILetterListener<ServerReadyEvent>
{
 public async Task HandleAsync(ServerReadyEvent @event, CancellationToken cancellationToken = default)
 {
 // Handle the server ready event
 }
}

Configuration

using Orion.Core.Server.Data.Config.Base;

public class MyConfigSection : BaseConfigSection
{
 public string Name { get; set; } = "Default";
 public int SomeValue { get; set; } = 42;

 public override void Load()
 {
 // Custom loading logic
 }
}

Dependencies

  • Orion.Core: Core utilities and extensions
  • Orion.Irc.Core: IRC protocol implementation
  • Orion.Network.Core: Networking abstractions
  • HyperCube.Postman: Event dispatching
  • Serilog: Logging
  • CommandLineParser: Command-line parsing

Related Packages

  • Orion.Core.Server.Web: Web API and HTTP interface
  • Orion.Network.Tcp: TCP implementation for network transports

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project Links

Product Versions Compatible and additional computed target framework versions.
.NET net9.0 net9.0 is compatible.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows 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 (2)

Showing the top 2 NuGet packages that depend on Orion.Core.Server:

Package Downloads
Orion.Core.Server.Web

Web API and HTTP interface for Orion IRC Server

Orion.JavaScript.Engine

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.30.1 410 5/15/2025
0.30.0 329 5/13/2025
0.29.0 336 5/12/2025
0.28.4 326 5/12/2025
0.28.3 315 5/12/2025
0.28.2 333 5/12/2025
0.28.1 211 5/11/2025
0.28.0 175 5/10/2025
0.27.1 278 5/8/2025
0.27.0 237 5/8/2025
0.26.0 241 5/8/2025
0.25.2 261 5/8/2025
0.25.1 237 5/8/2025
0.25.0 266 5/8/2025
0.24.0 250 5/6/2025
0.23.0 246 5/6/2025
0.22.3 236 5/6/2025
0.22.2 252 5/5/2025
0.22.0 209 5/2/2025
0.21.0 194 5/2/2025
Loading failed