You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
668 B
C#

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<InStoreBusiness>();
}
public static IApplicationBuilder UseBusinessExtensions(this IApplicationBuilder app)
{
var _inStore = app.ApplicationServices.GetService<InStoreBusiness>();
_inStore.Init();
return app;
}
}
}