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.
20 lines
469 B
C#
20 lines
469 B
C#
using System.Linq;
|
|
using System.Reflection;
|
|
using Microsoft.AspNetCore.Builder;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using SlnMesnac.Plc.Factory;
|
|
|
|
namespace SlnMesnac.Plc
|
|
{
|
|
public static class PlcSetup
|
|
{
|
|
public static IApplicationBuilder UsePlcExtensions(this IApplicationBuilder app)
|
|
{
|
|
var plcPool = app.ApplicationServices.GetService<PlcPool>();
|
|
plcPool.Init();
|
|
return app;
|
|
}
|
|
|
|
}
|
|
}
|