/// <summary> /// Gets from the server all the Robots associated with a Machine and having /// the specified licenseKey. /// If the received payload contains the ServiceUserName, it returns only the /// Robot with that specific UserName. /// </summary> /// <remarks> /// Gets from the server all the Robots associated with a Machine and having /// the specified licenseKey. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='payload'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <RobotServiceResponse> StartServiceAsync(this IRobotsService operations, RobotServicePayload payload, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { using (var _result = await operations.StartServiceWithHttpMessagesAsync(payload, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets from the server all the Robots associated with a Machine and having /// the specified licenseKey. /// If the received payload contains the ServiceUserName, it returns only the /// Robot with that specific UserName. /// </summary> /// <remarks> /// Gets from the server all the Robots associated with a Machine and having /// the specified licenseKey. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='body'> /// </param> public static RobotServiceResponse StartService(this IRobotsService operations, RobotServicePayload body = default(RobotServicePayload)) { return(operations.StartServiceAsync(body).GetAwaiter().GetResult()); }