/// <summary> /// Creates a draft with the given information. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='draftCreateModel'> /// Draft creation model. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> CreateAsync(this IEnvelope operations, DraftCreateModel draftCreateModel, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateWithHttpMessagesAsync(draftCreateModel, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }