mirror of
https://github.com/snltty/linker.git
synced 2025-11-03 10:01:05 +08:00
32 lines
952 B
C#
32 lines
952 B
C#
using cmonitor.config;
|
|
using cmonitor.startup;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using System.Reflection;
|
|
|
|
namespace cmonitor.plugins.logger
|
|
{
|
|
public sealed class LoggerStartup : IStartup
|
|
{
|
|
public StartupLevel Level => StartupLevel.Top;
|
|
|
|
public void AddClient(ServiceCollection serviceCollection, Config config, Assembly[] assemblies)
|
|
{
|
|
serviceCollection.AddSingleton<LoggerClientApiController>();
|
|
}
|
|
|
|
public void AddServer(ServiceCollection serviceCollection, Config config, Assembly[] assemblies)
|
|
{
|
|
|
|
}
|
|
|
|
public void UseClient(ServiceProvider serviceProvider, Config config, Assembly[] assemblies)
|
|
{
|
|
LoggerClientApiController logger = serviceProvider.GetService<LoggerClientApiController>();
|
|
}
|
|
|
|
public void UseServer(ServiceProvider serviceProvider, Config config, Assembly[] assemblies)
|
|
{
|
|
}
|
|
}
|
|
}
|