public static GetRequestId ( this exception ) : string | ||
exception | this | |
return | string |
public static string GetRequestId(this CloudException exception)
{
IEnumerable<string> strings;
if (exception.Response != null
&& exception.Response.Headers != null
&& exception.Response.Headers.TryGetValue("x-ms-request-id", out strings))
{
return string.Join(";", strings);
}
return string.Empty;
}