/// <summary> /// Returns an envelope for the given id. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='envelopeId'> /// The id of the envelope/bulk. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> ByIdAsync(this IEnvelope operations, string envelopeId, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ByIdWithHttpMessagesAsync(envelopeId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }