Skip to content

Instantly share code, notes, and snippets.

@zdi-team
Created August 16, 2021 14:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zdi-team/e3d06ce706c1dc8e214e26d0cb9a2700 to your computer and use it in GitHub Desktop.
Save zdi-team/e3d06ce706c1dc8e214e26d0cb9a2700 to your computer and use it in GitHub Desktop.
public static bool IsAutodiscoverV2PreviewRequest(string path) {
ArgumentValidator.ThrowIfNull("path", path);
return path.EndsWith("/autodiscover.json", StringComparison.OrdinalIgnoreCase);
}
public static bool IsAutodiscoverV2Request(string path) {
ArgumentValidator.ThrowIfNull("path", path);
return RequestPathParser.IsAutodiscoverV2Version1Request(path) || RequestPathParser.IsAutodiscoverV2PreviewRequest(path);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment