EzDotNetty 1.0.21
dotnet add package EzDotNetty --version 1.0.21
NuGet\Install-Package EzDotNetty -Version 1.0.21
<PackageReference Include="EzDotNetty" Version="1.0.21" />
paket add EzDotNetty --version 1.0.21
#r "nuget: EzDotNetty, 1.0.21"
// Install EzDotNetty as a Cake Addin #addin nuget:?package=EzDotNetty&version=1.0.21 // Install EzDotNetty as a Cake Tool #tool nuget:?package=EzDotNetty&version=1.0.21
EzDotNetty
introduce
Easily usable with DotNetty.
Implemented by C# .NET 9
The purpose of this project is to easily build and operate a server using DotNetty.
nuget
https://www.nuget.org/packages/EzDotNetty/
Example
TestClient
https://github.com/elky84/EzDotNetty/TestClient
TestServer
https://github.com/elky84/EzDotNetty/TestServer
structure review
한국어
- BootstrapHelper
- 손쉽게 DotNetty 기본 옵션으로 가동해주는 Helper Class
- 생성자에 넘기는 THandler Type에 따라, 소켓 커넥션마다 Handler를 생성해줌
- 이는 DotNetty의 구조이자 규칙이며, Handler는 커넥션마다 생성된다는 점을 감안해서 코딩 해주어야 함.
- Config
- 말그대로 설정 파일
- AppSettings.json 으로 부터 읽어옴
- 설정 파일에 property가 있을 경우 이곳에서 확장해도 되고, 기능은 별개의 설정 파일을 쓰거나, 별개의 class를 생성해서 읽어도 무방하긴 함
- IConfigurationRoot 자체가 string 형태로 설정 값에 대한 접근을 허용하기 때문
- 말그대로 설정 파일
- Handler
- 기본적인 DotNetty 이벤트를 받아서 처리해주는 ChannelHandlerAdapter의 상속받은 클래스 이자, 일부 메소드를 abstract로 지정한 추상 클래스
- BootstrapHelper에서 THandler의 명시 타입을 규칙화 하기 위해 존재하는 클래스
- 기본적인 DotNetty 이벤트를 받아서 처리해주는 ChannelHandlerAdapter의 상속받은 클래스 이자, 일부 메소드를 abstract로 지정한 추상 클래스
- Logging
- Serilog에 대한 설정 기능
- LoggerId를 상속 받아 구현함으로써, LoggerId에 대한 동적 추가 가능하게 구현
- Service
- SchedulerService
- 특정 주기마다 불려지는 기능을 지원하는 서비스
- SchedulerService
- Util
- JsonUtil
- Json의 ExtensionData 부분을 Populate 해주는 Extend 기능을 위한 클래스
- JsonUtil
english
- BootstrapHelper
- Helper Class that easily operates with DotNetty basic options
- Depending on the THandler Type passed to the constructor, a Handler is created for each socket connection.
- This is the structure and rule of DotNetty, and the Handler should be coded considering that it is created for each connection.
- Config
- Literally config file
- Read from AppSettings.json
- If there is a property in the configuration file, it can be extended here, and it is okay to write a separate configuration file or create and read a separate class for functions.
- Because IConfigurationRoot itself allows access to the setting value in the form of a string
- Literally config file
- Handler
- A class inherited from ChannelHandlerAdapter that receives and handles basic DotNetty events, and an abstract class with some methods designated as abstract.
- A class that exists to regularize the explicit type of THandler in BootstrapHelper.
- A class inherited from ChannelHandlerAdapter that receives and handles basic DotNetty events, and an abstract class with some methods designated as abstract.
- Logging
- Setting function for Serilog
- By inheriting and implementing LoggerId, it is possible to dynamically add LoggerId.
- Service
- SchedulerService
- A service that supports a function called every specific cycle
- SchedulerService
- Util
- JsonUtil
- A class for the extend function that populates the ExtensionData part of Json.
- JsonUtil
version history
v1.0.21
use .NET 9 update using packages.
v1.0.20
use .NET 8
v1.0.19
improve logging interface. changed namespace LogConfigration → Loggers
v1.0.18
Arranged to use serilog default options
v1.0.17
Added file logging configuration from serilog.json.
v1.0.16
added file logging to default option.
v1.0.15
Change private set of Enumeration to set for json deserialize
v1.0.14
Changed Newtonsoft.json to use ZeroFormatter as Protocol function. Changed to a more explicit example where the test client and test server send and receive Protocols directly.
v1.0.13
Remove some logger. Initialize all logger in Loggin.Collection. Need register LoggerId. (Per LoggerId type. Include inheritance)
v1.0.12
Fix invalid namespace. (wrong namespace, sln, csproj word issue)
v1.0.11
Added log level switch function. (SeriLog)
v1.0.10
Added Enumeration Get method.
v1.0.9
Improve Logging Class. (change to use LoggerId)
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. |
-
net9.0
- DotNetty.Buffers (>= 0.7.6)
- DotNetty.Codecs (>= 0.7.6)
- DotNetty.Common (>= 0.7.6)
- DotNetty.Handlers (>= 0.7.6)
- DotNetty.Transport (>= 0.7.6)
- DotNetty.Transport.Libuv (>= 0.7.6)
- LightInject (>= 7.0.0)
- LightInject.Annotation (>= 1.1.0)
- Microsoft.Extensions.Configuration (>= 9.0.0)
- Microsoft.Extensions.Configuration.FileExtensions (>= 9.0.0)
- Microsoft.Extensions.Configuration.Json (>= 9.0.0)
- Newtonsoft.Json (>= 13.0.3)
- Serilog (>= 4.1.1-dev-02318)
- Serilog.Settings.Configuration (>= 8.0.4)
- Serilog.Sinks.Console (>= 6.0.0)
- Serilog.Sinks.File (>= 6.0.0)
- System.Collections.Concurrent (>= 4.3.0)
- System.Runtime.Caching (>= 9.0.0)
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.21 | 74 | 11/16/2024 |
1.0.20 | 140 | 3/6/2024 |
1.0.19 | 404 | 11/16/2022 |
1.0.18 | 336 | 11/15/2022 |
1.0.17 | 454 | 6/10/2022 |
1.0.16 | 434 | 4/22/2022 |
1.0.15 | 430 | 3/21/2022 |
1.0.14 | 527 | 3/1/2022 |
1.0.13 | 440 | 1/27/2022 |
1.0.12 | 406 | 1/27/2022 |
1.0.10 | 416 | 1/27/2022 |
1.0.9 | 450 | 1/27/2022 |
1.0.8 | 284 | 1/5/2022 |
1.0.7 | 306 | 1/5/2022 |
1.0.6 | 285 | 1/3/2022 |
1.0.5 | 286 | 1/3/2022 |
1.0.4 | 296 | 1/1/2022 |
1.0.3 | 312 | 12/29/2021 |
1.0.2 | 280 | 12/29/2021 |
1.0.1 | 291 | 12/29/2021 |
1.0.0 | 277 | 12/28/2021 |