Esempio n. 1
0
 /// <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);
     }
 }
Esempio n. 2
0
 /// <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);
     }
 }
Esempio n. 3
0
 /// <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());
 }
Esempio n. 4
0
 /// <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());
 }
Esempio n. 5
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static object Get(this IControlRecords operations)
 {
     return(operations.GetAsync().GetAwaiter().GetResult());
 }