You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Common/Extensions/ConfigurationExtensions.cs
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,6 @@ public static ConfigurationOptions RegisterRedisOptions(this WebApplicationBuild
42
42
else
43
43
{
44
44
if(string.IsNullOrEmpty(section.Host))thrownewInvalidOperationException("Redis Host field is required if no connectionstring is specified (OpenShock:Redis:Host).");
45
-
if(string.IsNullOrEmpty(section.User))thrownewInvalidOperationException("Redis User field is required if no connectionstring is specified (OpenShock:Redis:User).");
46
45
47
46
// Parse port with sane default + validation
48
47
ushortport=6379;
@@ -54,7 +53,7 @@ public static ConfigurationOptions RegisterRedisOptions(this WebApplicationBuild
0 commit comments