mirror of
https://github.com/netchx/netch.git
synced 2026-03-24 18:39:47 +08:00
32 lines
883 B
C#
32 lines
883 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
using Microsoft.Extensions.DependencyInjection.Extensions;
|
|
using Netch.Forms;
|
|
using Netch.Models;
|
|
|
|
namespace Netch.Services
|
|
{
|
|
public static class ServiceExtensions
|
|
{
|
|
public static IServiceCollection AddViews(this IServiceCollection services)
|
|
{
|
|
services.TryAddSingleton<MainForm>();
|
|
return services;
|
|
}
|
|
|
|
public static IServiceCollection AddSetting(this IServiceCollection services)
|
|
{
|
|
services.TryAddSingleton<Setting>();
|
|
return services;
|
|
}
|
|
|
|
public static IServiceCollection AddDynamicData(this IServiceCollection services)
|
|
{
|
|
return services;
|
|
}
|
|
|
|
public static IServiceCollection AddStartupService(this IServiceCollection services)
|
|
{
|
|
return services;
|
|
}
|
|
}
|
|
} |