/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='code'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> GetByCodeAsync(this IErrorTexts operations, string code, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetByCodeWithHttpMessagesAsync(code, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='code'> /// </param> public static object GetByCode(this IErrorTexts operations, string code) { return(operations.GetByCodeAsync(code).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> public static object Get(this IErrorTexts operations) { return(operations.GetAsync().GetAwaiter().GetResult()); }