Allow runner to check service connection in background. (#3542)

* Allow runner to check service connection in background.

* .

* .
This commit is contained in:
Tingluo Huang
2024-11-12 13:30:30 -05:00
committed by GitHub
parent d37a7ae14d
commit d16fb2c593
5 changed files with 208 additions and 11 deletions

View File

@@ -60,5 +60,15 @@ namespace GitHub.Runner.Sdk
}
return string.Empty;
}
public static string GetVssRequestId(HttpResponseHeaders headers)
{
if (headers != null &&
headers.TryGetValues("x-vss-e2eid", out var headerValues))
{
return headerValues.FirstOrDefault();
}
return string.Empty;
}
}
}