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.

35 lines
851 B
C#

using Microsoft.Extensions.Logging;
using SlnMesnac.Repository.service;
using SlnMesnac.TouchSocket;
using System;
using System.Collections.Generic;
using System.Text;
namespace SlnMesnac.Business.@base
{
public class VisionBusiness
{
private ILogger<VisionBusiness> _logger;
private static VisionBusiness instance;
private TcpServer _tcpServer;
public VisionBusiness(ILogger<VisionBusiness> logger, TcpServer tcpServer)
{
_logger = logger;
_tcpServer = tcpServer;
}
public static VisionBusiness GetInstance(ILogger<VisionBusiness> logger, TcpServer tcpServer)
{
if (instance == null)
{
instance = new VisionBusiness(logger, tcpServer);
}
return instance;
}
}
}