using LocalhostMES.Api.Hosting; using LocalhostMES.Api.Services; using LocalhostMES.Models; using Prism.Ioc; using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using System.Text; using System.Threading.Tasks; namespace LocalhostMES.Core { public class Management { private IContainerProvider _container; private WebApiService _webApiService; private MesApiClient _apiClient; private WorkOrderNotifyTcpClient _workOrderNotifyTcpClient; private List _getOrderInfo = new List(); private bool _IsLocalhostMode = false; public MesApiClient ApiClient { get => _apiClient; set => _apiClient = value; } public WebApiService WebApiService { get => _webApiService; set => _webApiService = value; } public WorkOrderNotifyTcpClient WorkOrderNotifyTcpClient { get => _workOrderNotifyTcpClient; set => _workOrderNotifyTcpClient = value; } public List GetOrderInfo { get => _getOrderInfo; set => _getOrderInfo = value; } public bool IsLocalhostMode { get => _IsLocalhostMode; set => _IsLocalhostMode = value; } public static Management management = new Management(); public static Management GetManagement() { return management; } } }