BatchScoring/RestRequest.cs
/// <summary>
/// Get the results of a run or batch of runs
/// </summary>
/// <typeparam name="T">List<RunResult> or RunResult</RunResult></typeparam>
/// <param name="requestInfo">Info for retrieving one or many run results</param>
/// <param name="authToken">AAD Token for SP</param>
/// <returns>Results of the call as a T or null on failure. </returns>
Get the results of a run or batch of runs
Get the results of a run or batch of runs
public static T GetRunResults<T>(PipelineRequest requestInfo, string authToken) where T: class, new()
        {
            RestResponse rr = RestRequest.MakeRequest(requestInfo, authToken).Result;
            if (rr.Content != null && rr.Content.Length > 0)
            {
                return Newtonsoft.Json.JsonConvert.DeserializeObject<T>(rr.Content);
            }
            return null;
        }
public static T GetRunResults < T > ( PipelineRequest requestInfo , string authToken ) where T : class , new ( ) { RestResponse rr = RestRequest . MakeRequest ( requestInfo , authToken ) . Result ; if ( rr . Content != null && rr . Content . Length > 0 ) { return Newtonsoft . Json . JsonConvert . DeserializeObject < T > ( rr . Content ) ; } return null ; }
Get the results of a run or batch of runs
Get the results of a run or batch of runs
Results of the call as a T or null on failure.
Results of the call as a T or null on failure .
requestInfo
PipelineRequest
Info for retrieving one or many run results
Info for retrieving one or many run results
authToken
string
AAD Token for SP
AAD Token for SP
typeparam
List or RunResult
List or RunResult