mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-02 15:50:47 +08:00
34 lines
663 B
C#
34 lines
663 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Serein.Proto.WebSocket
|
|
{
|
|
|
|
public class ClassA : ISocketHandleModule
|
|
{
|
|
|
|
}
|
|
public class ClassB : ISocketHandleModule
|
|
{
|
|
|
|
}
|
|
public class ClassC : ISocketHandleModule
|
|
{
|
|
|
|
}
|
|
internal class TestClass
|
|
{
|
|
public void Run()
|
|
{
|
|
SereinWebSocketService sereinWebSocketService = new SereinWebSocketService();
|
|
sereinWebSocketService.AddHandleModule<ClassA>();
|
|
sereinWebSocketService.AddHandleModule<ClassB>(() => new ClassB());
|
|
}
|
|
|
|
|
|
}
|
|
}
|