/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='stringParameter'> /// </param> /// <param name='boolParameter'> /// </param> /// <param name='intParameter'> /// </param> /// <param name='format'> /// Specifies response output format /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <HelloTypes> CreateAsync(this IHelloTypesOperations operations, string stringParameter = default(string), bool?boolParameter = default(bool?), int?intParameter = default(int?), string format = "json", CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateWithHttpMessagesAsync(stringParameter, boolParameter, intParameter, format, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='stringParameter'> /// </param> /// <param name='boolParameter'> /// </param> /// <param name='intParameter'> /// </param> /// <param name='body'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <HelloTypes> GetAsync(this IHelloTypesOperations operations, string stringParameter = default(string), bool boolParameter = default(bool), int intParameter = default(int), HelloTypes body = default(HelloTypes), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(stringParameter, boolParameter, intParameter, body, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='stringParameter'> /// </param> /// <param name='boolParameter'> /// </param> /// <param name='intParameter'> /// </param> /// <param name='format'> /// Specifies response output format /// </param> public static HelloTypes Create(this IHelloTypesOperations operations, string stringParameter = default(string), bool?boolParameter = default(bool?), int?intParameter = default(int?), string format = "json") { return(operations.CreateAsync(stringParameter, boolParameter, intParameter, format).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='stringParameter'> /// </param> /// <param name='boolParameter'> /// </param> /// <param name='intParameter'> /// </param> /// <param name='body'> /// </param> public static HelloTypes Create(this IHelloTypesOperations operations, string stringParameter = default(string), bool boolParameter = default(bool), int intParameter = default(int), HelloTypes body = default(HelloTypes)) { return(operations.CreateAsync(stringParameter, boolParameter, intParameter, body).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='stringParameter'> /// </param> /// <param name='boolParameter'> /// </param> /// <param name='intParameter'> /// </param> public static HelloTypes Get(this IHelloTypesOperations operations, string stringParameter = default(string), bool boolParameter = default(bool), int intParameter = default(int)) { return(operations.GetAsync(stringParameter, boolParameter, intParameter).GetAwaiter().GetResult()); }