Пример #1
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='name'>
 /// </param>
 /// <param name='title'>
 /// </param>
 /// <param name='body'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <HelloResponse> CreateAsync(this IHelloName operations, string name, string title = default(string), Hello body = default(Hello), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateWithHttpMessagesAsync(name, title, body, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Пример #2
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='name'>
 /// </param>
 /// <param name='title'>
 /// </param>
 /// <param name='body'>
 /// </param>
 public static HelloResponse Post(this IHelloName operations, string name, string title = default(string), Hello body = default(Hello))
 {
     return(operations.PostAsync(name, title, body).GetAwaiter().GetResult());
 }
Пример #3
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='name'>
 /// </param>
 /// <param name='title'>
 /// </param>
 public static HelloResponse Get(this IHelloName operations, string name, string title = default(string))
 {
     return(operations.GetAsync(name, title).GetAwaiter().GetResult());
 }