Esempio n. 1
0
 /// <summary>
 /// Gets the system status.
 /// </summary>
 /// <returns>SystemInfo.</returns>
 public virtual SystemInfo GetSystemInfo()
 {
     return(new SystemInfo
     {
         HasPendingRestart = HasPendingRestart,
         Version = ApplicationVersion.ToString(),
         IsNetworkDeployed = CanSelfUpdate,
         WebSocketPortNumber = ServerManager.WebSocketPortNumber,
         SupportsNativeWebSocket = ServerManager.SupportsNativeWebSocket,
         FailedPluginAssemblies = FailedAssemblies.ToList(),
         InProgressInstallations = InstallationManager.CurrentInstallations.Select(i => i.Item1).ToList(),
         CompletedInstallations = InstallationManager.CompletedInstallations.ToList(),
         Id = _systemId,
         ProgramDataPath = ApplicationPaths.ProgramDataPath,
         LogPath = ApplicationPaths.LogDirectoryPath,
         ItemsByNamePath = ApplicationPaths.ItemsByNamePath,
         CachePath = ApplicationPaths.CachePath,
         MacAddress = GetMacAddress(),
         HttpServerPortNumber = ServerConfigurationManager.Configuration.HttpServerPortNumber,
         OperatingSystem = Environment.OSVersion.ToString(),
         CanSelfRestart = CanSelfRestart,
         CanSelfUpdate = CanSelfUpdate,
         WanAddress = GetWanAddress(),
         HasUpdateAvailable = _hasUpdateAvailable,
         SupportsAutoRunAtStartup = SupportsAutoRunAtStartup,
         TranscodingTempPath = ApplicationPaths.TranscodingTempPath,
         IsRunningAsService = IsRunningAsService,
         ServerName = string.IsNullOrWhiteSpace(ServerConfigurationManager.Configuration.ServerName) ? Environment.MachineName : ServerConfigurationManager.Configuration.ServerName
     });
 }
 /// <summary>
 /// Gets the system status.
 /// </summary>
 /// <returns>SystemInfo.</returns>
 public virtual SystemInfo GetSystemInfo()
 {
     return(new SystemInfo
     {
         HasPendingRestart = HasPendingRestart,
         Version = ApplicationVersion.ToString(),
         IsNetworkDeployed = CanSelfUpdate,
         WebSocketPortNumber = HttpServerPort,
         SupportsNativeWebSocket = true,
         FailedPluginAssemblies = FailedAssemblies.ToList(),
         InProgressInstallations = InstallationManager.CurrentInstallations.Select(i => i.Item1).ToList(),
         CompletedInstallations = InstallationManager.CompletedInstallations.ToList(),
         Id = SystemId,
         ProgramDataPath = ApplicationPaths.ProgramDataPath,
         LogPath = ApplicationPaths.LogDirectoryPath,
         ItemsByNamePath = ApplicationPaths.ItemsByNamePath,
         InternalMetadataPath = ApplicationPaths.InternalMetadataPath,
         CachePath = ApplicationPaths.CachePath,
         MacAddress = GetMacAddress(),
         HttpServerPortNumber = HttpServerPort,
         OperatingSystem = Environment.OSVersion.ToString(),
         CanSelfRestart = CanSelfRestart,
         CanSelfUpdate = CanSelfUpdate,
         WanAddress = ConnectManager.WanApiAddress,
         HasUpdateAvailable = HasUpdateAvailable,
         SupportsAutoRunAtStartup = SupportsAutoRunAtStartup,
         TranscodingTempPath = ApplicationPaths.TranscodingTempPath,
         IsRunningAsService = IsRunningAsService,
         SupportsRunningAsService = SupportsRunningAsService,
         ServerName = FriendlyName,
         LocalAddress = GetLocalIpAddress()
     });
 }
Esempio n. 3
0
 /// <summary>
 /// Gets the system status.
 /// </summary>
 /// <returns>SystemInfo.</returns>
 public virtual SystemInfo GetSystemInfo()
 {
     return(new SystemInfo
     {
         HasPendingRestart = HasPendingRestart,
         Version = ApplicationVersion.ToString(),
         IsNetworkDeployed = CanSelfUpdate,
         WebSocketPortNumber = ServerManager.WebSocketPortNumber,
         SupportsNativeWebSocket = ServerManager.SupportsNativeWebSocket,
         FailedPluginAssemblies = FailedAssemblies.ToList(),
         InProgressInstallations = InstallationManager.CurrentInstallations.Select(i => i.Item1).ToList(),
         CompletedInstallations = InstallationManager.CompletedInstallations.ToList(),
         Id = _systemId,
         ProgramDataPath = ApplicationPaths.ProgramDataPath,
         MacAddress = GetMacAddress(),
         HttpServerPortNumber = ServerConfigurationManager.Configuration.HttpServerPortNumber,
         OperatingSystem = Environment.OSVersion.ToString(),
         CanSelfRestart = CanSelfRestart,
         CanSelfUpdate = CanSelfUpdate
     });
 }