2025-03-16 03:17:36 +08:00

20 lines
758 B
C#

using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Seyounth.Hyosung.Core.Agv;
using Seyounth.Hyosung.Core.Plc;
using Seyounth.Hyosung.Core.Printer;
using Seyounth.Hyosung.Core.Scanner;
namespace Seyounth.Hyosung.Core;
public static class ServiceExtensions
{
public static IServiceCollection AddHyosungServices(this IServiceCollection services,ConfigurationManager configuration)
{
services.AddSingleton<IHyosungPlcService, HyosungPlcService>();
services.AddSingleton<IHyosungScannerService, HyosungScannerService>();
services.AddSingleton<IHyosungAgvService, HyosungAgvService>();
services.AddSingleton<IHyosungPrinter, HyosungPrinter>();
return services;
}
}