/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='name'> /// </param> /// <param name='value'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> PutByNameValueAsync(this IControlRecords operations, string name, string value, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.PutByNameValueWithHttpMessagesAsync(name, value, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> GetAsync(this IControlRecords operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='name'> /// </param> /// <param name='value'> /// </param> public static object PutByNameValue(this IControlRecords operations, string name, string value) { return(operations.PutByNameValueAsync(name, value).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='name'> /// </param> public static object GetByName(this IControlRecords operations, string name) { return(operations.GetByNameAsync(name).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> public static object Get(this IControlRecords operations) { return(operations.GetAsync().GetAwaiter().GetResult()); }