mirror of
https://github.com/snltty/linker.git
synced 2025-10-28 03:13:15 +08:00
31 lines
890 B
C#
31 lines
890 B
C#
using cmonitor.config;
|
|
using cmonitor.startup;
|
|
using MemoryPack;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using System.Reflection;
|
|
|
|
namespace cmonitor.serializes
|
|
{
|
|
public sealed class SerializeStartup : IStartup
|
|
{
|
|
public void AddClient(ServiceCollection serviceCollection, Config config, Assembly[] assemblies)
|
|
{
|
|
MemoryPackFormatterProvider.Register(new IPEndPointFormatter());
|
|
}
|
|
|
|
public void AddServer(ServiceCollection serviceCollection, Config config, Assembly[] assemblies)
|
|
{
|
|
MemoryPackFormatterProvider.Register(new IPEndPointFormatter());
|
|
}
|
|
|
|
|
|
public void UseClient(ServiceProvider serviceProvider, Config config, Assembly[] assemblies)
|
|
{
|
|
}
|
|
|
|
public void UseServer(ServiceProvider serviceProvider, Config config, Assembly[] assemblies)
|
|
{
|
|
}
|
|
}
|
|
}
|