Skip to content
This repository was archived by the owner on Dec 13, 2018. It is now read-only.

Commit 0189d3e

Browse files
authored
Fix more comments and property validation in Microsoft.Extensions.Logging.AzureAppServices (#512)
1 parent 1c9dcb0 commit 0189d3e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Microsoft.Extensions.Logging.AzureAppServices/AzureAppServicesDiagnosticsSettings.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public string OutputTemplate
6464
get { return _outputTemplate; }
6565
set
6666
{
67-
if (string.IsNullOrWhiteSpace(value))
67+
if (string.IsNullOrEmpty(value))
6868
{
6969
throw new ArgumentException(nameof(value), $"{nameof(OutputTemplate)} must be non-empty string.");
7070
}
@@ -115,7 +115,7 @@ public string BlobName
115115
get { return _blobName; }
116116
set
117117
{
118-
if (string.IsNullOrWhiteSpace(value))
118+
if (string.IsNullOrEmpty(value))
119119
{
120120
throw new ArgumentException(nameof(value), $"{nameof(BlobName)} must be non-empty string.");
121121
}
@@ -135,7 +135,7 @@ public int BackgroundQueueSize
135135
{
136136
if (value < 0)
137137
{
138-
throw new ArgumentOutOfRangeException(nameof(value), $"{nameof(BackgroundQueueSize)} must be positive or 0.");
138+
throw new ArgumentOutOfRangeException(nameof(value), $"{nameof(BackgroundQueueSize)} must be non-negative.");
139139
}
140140
_backgroundQueueSize = value;
141141
}

0 commit comments

Comments
 (0)