Skip to content

Commit

Permalink
Adds support for querying the location that the schema was obtained from
Browse files Browse the repository at this point in the history
  • Loading branch information
ryannewington committed Aug 14, 2017
1 parent d206e67 commit cd8b5ad
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ public static class ResourceManagementSchema
/// </summary>
private static List<string> ElementsToIgnore;

/// <summary>
/// Gets the location that currently loaded schema was obtained from
/// </summary>
public static Uri SchemaEndpoint { get; private set; }

/// <summary>
/// Initializes the static instance of the ResourceManagementSchema class
/// </summary>
Expand Down Expand Up @@ -109,7 +114,7 @@ internal static void RefreshSchema(EndpointManager e)
MetadataSet set = ResourceManagementSchema.GetMetadataSet(e);
ResourceManagementSchema.PopulateSchemaFromMetadata(set);
ResourceManagementSchema.LoadNameValidationRegularExpressions();

ResourceManagementSchema.SchemaEndpoint = e.MetadataEndpoint.Uri;
isLoaded = true;
}
finally
Expand Down

0 comments on commit cd8b5ad

Please sign in to comment.