浏览代码

Add flag for startup completed

crobibero 4 年之前
父节点
当前提交
9a74ace84b
共有 2 个文件被更改,包括 8 次插入1 次删除
  1. 2 1
      Emby.Server.Implementations/ApplicationHost.cs
  2. 6 0
      MediaBrowser.Model/System/PublicSystemInfo.cs

+ 2 - 1
Emby.Server.Implementations/ApplicationHost.cs

@@ -1137,7 +1137,8 @@ namespace Emby.Server.Implementations
                 Id = SystemId,
                 OperatingSystem = OperatingSystem.Id.ToString(),
                 ServerName = FriendlyName,
-                LocalAddress = localAddress
+                LocalAddress = localAddress,
+                StartupCompleted = CoreStartupHasCompleted
             };
         }
 

+ 6 - 0
MediaBrowser.Model/System/PublicSystemInfo.cs

@@ -39,5 +39,11 @@ namespace MediaBrowser.Model.System
         /// </summary>
         /// <value>The id.</value>
         public string Id { get; set; }
+
+        /// <summary>
+        /// Gets or sets a value indicating whether startup is completed.
+        /// </summary>
+        /// <value>The startup completion status.</value>
+        public bool StartupCompleted { get; set; }
     }
 }