Many more updates and cleanups

This commit is contained in:
2020-04-19 03:04:46 +02:00
parent 234a0e28cd
commit f2cc603195
18 changed files with 147 additions and 82 deletions

View File

@ -2,6 +2,7 @@ using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Blazorise;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Hosting;
@ -9,6 +10,7 @@ using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Seenginx.Services;
using Seenginx.Services.Models;
namespace Seenginx
{
@ -31,6 +33,15 @@ namespace Seenginx
#endif
;
services.AddServerSideBlazor();
services.AddBlazorise(options =>
{
options.ChangeTextOnKeyPress = true; // optional
});
var configPaths = new ConfigPaths();
configPaths.NginxPath = @"C:\nginx\";
configPaths.SystemDPath = @"C:\systemd\system\";
services.AddSingleton(configPaths);
services.AddTransient<IDmesgService, DmesgService>();
services.AddTransient<INginxService, NginxService>();
services.AddTransient<ISystemDService, SystemDService>();