-
Notifications
You must be signed in to change notification settings - Fork 14
Adding more validators to the new connection string validator endpoint #14
Adding more validators to the new connection string validator endpoint #14
Conversation
@@ -364,6 +445,9 @@ | |||
<ErrorReport>prompt</ErrorReport> | |||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> | |||
</PropertyGroup> | |||
<PropertyGroup> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
</WebProjectProperties> | ||
</FlavorProperties> | ||
</VisualStudio> | ||
</ProjectExtensions> | ||
<Import Project="..\packages\Microsoft.Azure.Services.AppAuthentication.1.0.3\build\Microsoft.Azure.Services.AppAuthentication.targets" Condition="Exists('..\packages\Microsoft.Azure.Services.AppAuthentication.1.0.3\build\Microsoft.Azure.Services.AppAuthentication.targets')" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@@ -9,7 +9,7 @@ namespace DiagnosticsExtension.Models.ConnectionStringValidator | |||
interface IConnectionStringValidator | |||
{ | |||
// verify provided string is a valid connection string that can be tested by the validator | |||
bool IsValid(string connStr); | |||
Task<bool> IsValid(string connStr); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename to IsValidAsync
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
CloudBlobClient client = storageAccount.CreateCloudBlobClient(); | ||
client.GetServiceProperties(); | ||
IEnumerable<CloudBlobContainer> containers = client.ListContainers(); | ||
if (containers.Count() == 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this if statement
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
The following connections strings are supported with this PR:
Minor refactor of IsValid to be an async function for consistency and incase future validators call async methods (async all the way)