From ea712df3f48c421662301367e69f84e7a9caf52e Mon Sep 17 00:00:00 2001 From: Pavel Krymets Date: Fri, 4 Nov 2016 14:43:10 -0700 Subject: [PATCH] Fix more comments and property validation in Microsoft.Extensions.Logging.AzureAppServices --- .../AzureAppServicesDiagnosticsSettings.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Microsoft.Extensions.Logging.AzureAppServices/AzureAppServicesDiagnosticsSettings.cs b/src/Microsoft.Extensions.Logging.AzureAppServices/AzureAppServicesDiagnosticsSettings.cs index 4da2d253..92a6eea5 100644 --- a/src/Microsoft.Extensions.Logging.AzureAppServices/AzureAppServicesDiagnosticsSettings.cs +++ b/src/Microsoft.Extensions.Logging.AzureAppServices/AzureAppServicesDiagnosticsSettings.cs @@ -64,7 +64,7 @@ public string OutputTemplate get { return _outputTemplate; } set { - if (string.IsNullOrWhiteSpace(value)) + if (string.IsNullOrEmpty(value)) { throw new ArgumentException(nameof(value), $"{nameof(OutputTemplate)} must be non-empty string."); } @@ -115,7 +115,7 @@ public string BlobName get { return _blobName; } set { - if (string.IsNullOrWhiteSpace(value)) + if (string.IsNullOrEmpty(value)) { throw new ArgumentException(nameof(value), $"{nameof(BlobName)} must be non-empty string."); } @@ -135,7 +135,7 @@ public int BackgroundQueueSize { if (value < 0) { - throw new ArgumentOutOfRangeException(nameof(value), $"{nameof(BackgroundQueueSize)} must be positive or 0."); + throw new ArgumentOutOfRangeException(nameof(value), $"{nameof(BackgroundQueueSize)} must be non-negative."); } _backgroundQueueSize = value; }