43 lines
1.3 KiB
C#
43 lines
1.3 KiB
C#
using Microsoft.Extensions.Logging;
|
|
using SlnMesnac.Repository;
|
|
using SlnMesnac.Repository.service;
|
|
using SlnMesnac.TouchSocket;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace SlnMesnac.Business.@base
|
|
{
|
|
public class UpLoadBusiness
|
|
{
|
|
#region 单例模式
|
|
//private static readonly Lazy<UpLoadBusiness> lazy = new Lazy<UpLoadBusiness>(() => new UpLoadBusiness(_logger,_tcpServer,));
|
|
|
|
//public static UpLoadBusiness Instance
|
|
//{
|
|
// get
|
|
// {
|
|
// return lazy.Value;
|
|
// }
|
|
//}
|
|
|
|
public UpLoadBusiness(ILogger<UpLoadBusiness> logger, IAirportTaskService Taskservice, IAGVStateService agvService, TcpServer tcpServer)
|
|
{
|
|
_logger = logger;
|
|
_tcpServer = tcpServer;
|
|
_Taskservice = Taskservice;
|
|
_AGVStateService = agvService;
|
|
|
|
}
|
|
#endregion
|
|
private TcpServer _tcpServer = null;
|
|
public Action<AirportTask> _Taskaction;
|
|
public Action<string> _RefreshLogMessageAction;
|
|
private static UpLoadBusiness instance;
|
|
private ILogger<UpLoadBusiness> _logger;
|
|
private IAirportTaskService _Taskservice;
|
|
private IAGVStateService _AGVStateService;
|
|
|
|
}
|
|
}
|