Management.cs 963 B

12345678910111213141516171819202122232425262728293031323334
  1. using LocalhostMES.Controller;
  2. using Prism.Ioc;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.ComponentModel;
  6. using System.Linq;
  7. using System.Runtime.InteropServices.WindowsRuntime;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. namespace LocalhostMES.Core
  11. {
  12. public class Management
  13. {
  14. private IContainerProvider _container;
  15. private WebApiService _webApiService;
  16. private MesApiClient _apiClient;
  17. private bool _IsLocalhostMode = false;
  18. public MesApiClient ApiClient { get => _apiClient; set => _apiClient = value; }
  19. public WebApiService WebApiService { get => _webApiService; set => _webApiService = value; }
  20. public bool IsLocalhostMode { get => _IsLocalhostMode; set => _IsLocalhostMode = value; }
  21. public static Management management = new Management();
  22. public static Management GetManagement()
  23. {
  24. return management;
  25. }
  26. }
  27. }