private string GetBuildAgentName() { var request = new BuildAgentPropertiesRequest(); var response = SendMessage(request); if (response is BuildAgentPropertiesResponse && response.ResponseStatus != ResponseStatus.Failure) { return ((BuildAgentPropertiesResponse)response).Name; } return string.Format("Unknown"); }
private string GetBuildAgentName() { var request = new BuildAgentPropertiesRequest(); var response = SendMessage(request); if (response is BuildAgentPropertiesResponse && response.ResponseStatus != ResponseStatus.Failure) { return(((BuildAgentPropertiesResponse)response).Name); } return(string.Format("Unknown")); }