123456789101112131415161718192021222324252627282930 |
- using Vinno.vCloud.FIS.CrossPlatform.Common;
- using Vinno.vCloud.FIS.CrossPlatform.Common.Enum;
- using Vinno.vCloud.FIS.CrossPlatform.Common.Helper;
- using Vinno.vCloud.FIS.CrossPlatform.Linux.Hardware;
- namespace Vinno.vCloud.FIS.CrossPlatform.Linux
- {
- public class FISLinux
- {
- public static string? FISLogPath { get; private set; }
- /// <summary>
- /// Initilize for windows platform.
- /// </summary>
- public static void Initialize(string fisLogPath)
- {
- CrossPlatformHelper.Instance.Platform = EnumPlatform.Linux;
- if (string.IsNullOrEmpty(fisLogPath))
- {
- FISLogPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "FISLogs");
- }
- else
- {
- FISLogPath = fisLogPath;
- }
- DirectoryHelper.CreateDirectory(FISLogPath);
- CpuInfo.Initialize();// initialize cpu info
- }
- }
- }
|