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.
16 lines
422 B
C#
16 lines
422 B
C#
using Microsoft.AspNetCore.Builder;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using SlnMesnac.Rfid.Factory;
|
|
|
|
namespace SlnMesnac.Rfid
|
|
{
|
|
public static class RfidSetup
|
|
{
|
|
public static IApplicationBuilder UseRfidExtensions(this IApplicationBuilder app)
|
|
{
|
|
var pool = app.ApplicationServices.GetService<RfidPool>();
|
|
pool.Init();
|
|
return app;
|
|
}
|
|
}
|
|
} |