using Cis.Application.Core; using Cis.Application.Core.Component.CameraSDK; using Cis.Application.Core.Component.MarkSeacher; using Cis.Application.Core.Component.Onvif; using Cis.Application.Core.Component.PtzServer; using Cis.Application.Core.Component.ZLMediaKit; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.DependencyInjection; namespace Cis.Application; [AppStartup(100)] public class Startup : AppStartup { /// /// 配置应用所需服务,在该方法中可以添加应用所需要的功能或服务 /// /// public void ConfigureServices(IServiceCollection services) { services.AddConfigurableOptions(); services.AddSingleton(); services.AddSingleton(); services.AddSingleton(); services.AddSingleton(); services.AddSingleton(typeof(CameraDataCenter)); } /// /// 配置应用请求处理管道 /// /// /// public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { InstanceCenter.Init(); } }