소스 검색

Document exception

Mark Monteiro 5 년 전
부모
커밋
3d8501e462
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      MediaBrowser.Common/Extensions/ProcessExtensions.cs

+ 1 - 0
MediaBrowser.Common/Extensions/ProcessExtensions.cs

@@ -16,6 +16,7 @@ namespace MediaBrowser.Common.Extensions
         /// <param name="process">The process to wait for.</param>
         /// <param name="timeout">The duration to wait before cancelling waiting for the task.</param>
         /// <returns>True if the task exited normally, false if the timeout elapsed before the process exited.</returns>
+        /// <exception cref="InvalidOperationException">If <see cref="Process.EnableRaisingEvents"/> is not set to true for the process.</exception>
         public static async Task<bool> WaitForExitAsync(this Process process, TimeSpan timeout)
         {
             using (var cancelTokenSource = new CancellationTokenSource(timeout))