SuperSocket.ProtoBase 2.0.2-beta.1

Release Note: SuperSocket 2.0.2-beta.1

Overview

SuperSocket 2.0.2-beta.1 is a beta release that enhances the flexibility of pipeline filters by removing the constraint requiring a default constructor. This change significantly improves dependency injection support for pipeline filters across the framework.

Key Improvements

Enhanced Dependency Injection Support for Pipeline Filters

  • Removed the constraint requiring pipeline filters to have a parameterless constructor (new() constraint)
  • This change enables pipeline filters to receive dependencies through constructor injection
  • Modified all relevant method signatures across the framework to support this new flexibility

Affected Components

The new() constraint was removed from the following interfaces and methods:

  1. In ISuperSocketHostBuilder<TReceivePackage> interface:

    • UsePipelineFilter<TPipelineFilter>() method
  2. In HostBuilderExtensions class:

    • AsSuperSocketHostBuilder<TReceivePackage, TPipelineFilter>() method
  3. In MultipleServerHostBuilder class:

    • AddServer<TReceivePackage, TPipelineFilter>() method
    • AddServer<TSuperSocketService, TReceivePackage, TPipelineFilter>() method
  4. In SuperSocketHostBuilder class and static methods:

    • UsePipelineFilter<TPipelineFilter>() method
    • Create<TReceivePackage, TPipelineFilter>() methods

Compatibility

This change is backward compatible with existing code. Pipeline filters with default constructors will continue to work as before, but now you can also create pipeline filters that require dependencies to be injected.

Example Usage

With this change, you can now create pipeline filters that require dependencies:

public class MyPipelineFilter : IPipelineFilter<TextPackageInfo>
{
    private readonly ILogger<MyPipelineFilter> _logger;
    private readonly IConfiguration _configuration;

    // Constructor with dependencies - now supported!
    public MyPipelineFilter(ILogger<MyPipelineFilter> logger, IConfiguration configuration)
    {
        _logger = logger;
        _configuration = configuration;
    }

    // Implementation details...
}

// Register and use the filter
hostBuilder.AsSuperSocketHostBuilder<TextPackageInfo, MyPipelineFilter>();

Release Status

This is a beta release intended for testing. Please report any issues you encounter on the GitHub repository.

Contributors

  • Kerry Jiang

Showing the top 20 packages that depend on SuperSocket.ProtoBase.

Packages Downloads
SuperSocket.Primitives
SuperSocket core primitive interfaces and classes that define the fundamental abstractions for network communication, session management, and message handling.
2
SuperSocket.Connection
SuperSocket library to abstract underlying communications as connection with pipeline.
2
SuperSocket.WebSocket
SuperSocket WebSocket protocol implementation.
2
SuperSocket.WebSocket
SuperSocket WebSocket protocol implementation providing frame parsing, message handling, and standards-compliant WebSocket protocol support (RFC 6455) for real-time bidirectional communication.
2
SuperSocket.Primitives
SuperSocket primitive interfaces and classes.
2
SuperSocket.Server
SuperSocket server hosting library.
2
SuperSocket.Server
SuperSocket server hosting library providing the core server implementation with session management, connection handling, and integration with the .NET dependency injection system and configuration framework.
2

Version Downloads Last updated
2.0.2 2 11/07/2025
2.0.2-beta.1 1 11/07/2025
2.0.1 1 11/07/2025
2.0.0 1 11/07/2025
2.0.0-beta.31 2 11/07/2025
2.0.0-beta.30 2 11/07/2025
2.0.0-beta.28 1 11/07/2025
2.0.0-beta.27 2 11/07/2025
2.0.0-beta.26 1 11/07/2025
2.0.0-beta.25 1 11/07/2025
2.0.0-beta.24 1 11/07/2025
2.0.0-beta.23 1 11/04/2025
2.0.0-beta.22 2 11/07/2025
2.0.0-beta.21 2 11/07/2025
2.0.0-beta.20.448 2 11/07/2025
2.0.0-beta.18 2 11/07/2025
2.0.0-beta.17 2 11/07/2025
2.0.0-beta.16 2 11/07/2025
2.0.0-beta.15 2 11/07/2025
2.0.0-beta.14 1 11/07/2025
2.0.0-beta.13 1 11/07/2025
2.0.0-beta.12 1 11/07/2025
2.0.0-beta.11 1 11/07/2025
2.0.0-beta.10 1 11/07/2025
2.0.0-beta.9 1 11/07/2025
2.0.0-beta.8 1 11/07/2025
1.7.0.17 2 11/07/2025
1.7.0.16 1 11/07/2025
1.7.0.15 2 11/07/2025
1.7.0.14 1 11/07/2025
1.7.0.13 1 11/07/2025
1.7.0.12 1 11/07/2025
1.7.0.11 1 11/07/2025
1.7.0.10 1 11/07/2025
1.7.0.9 2 11/07/2025
1.7.0.8 1 11/07/2025
1.7.0.7 1 11/07/2025
1.7.0.5 1 11/07/2025
1.7.0-beta7 2 11/07/2025
1.7.0-beta6 1 11/07/2025