using Microsoft.AspNetCore.Builder; using Microsoft.Extensions.DependencyInjection; using SlnMesnac.Business.business; using SlnMesnac.Config; using SlnMesnac.TouchSocket; namespace SlnMesnac.Business { public static class BusinessSetup { public static void AddBusinessSetup(this IServiceCollection services) { services.AddSingleton(); } public static IApplicationBuilder UseBusinessExtensions(this IApplicationBuilder app) { var _inStore = app.ApplicationServices.GetService(); _inStore.Init(); return app; } } }