/// <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 IHelloOperations operations, string name = default(string), 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='format'>
 /// Specifies response output format
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <HelloResponse> GetAsync(this IHelloOperations operations, string name = default(string), string title = default(string), string format = "json", CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(name, title, format, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <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 IHelloOperations operations, string name = default(string), string title = default(string), Hello body = default(Hello))
 {
     return(operations.PostAsync(name, title, body).GetAwaiter().GetResult());
 }
示例#4
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 IHelloOperations operations, string name = default(string), string title = default(string))
 {
     return(operations.GetAsync(name, title).GetAwaiter().GetResult());
 }
示例#5
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='name'>
 /// </param>
 /// <param name='title'>
 /// </param>
 /// <param name='format'>
 /// Specifies response output format
 /// </param>
 public static HelloResponse Post(this IHelloOperations operations, string name = default(string), string title = default(string), string format = "json")
 {
     return(operations.PostAsync(name, title, format).GetAwaiter().GetResult());
 }