@@ -537,7 +537,7 @@ namespace {{packageName}}.Client
537537 }
538538
539539 {{#supportsAsync}}
540- private async Task<ApiResponse<T>> ExecAsync<T>(RestRequest req, IReadableConfiguration configuration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken) )
540+ private async Task<ApiResponse<T>> ExecAsync<T>(RestRequest req, IReadableConfiguration configuration, System.Threading.CancellationToken cancellationToken = default)
541541 {
542542 RestClient client = new RestClient(_baseUrl);
543543
@@ -663,7 +663,7 @@ namespace {{packageName}}.Client
663663 /// GlobalConfiguration has been done before calling this method.</param>
664664 /// <param name="cancellationToken">Token that enables callers to cancel the request.</param>
665665 /// <returns>A Task containing ApiResponse</returns>
666- public Task<ApiResponse<T>> GetAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken) )
666+ public Task<ApiResponse<T>> GetAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default)
667667 {
668668 var config = configuration ?? GlobalConfiguration.Instance;
669669 return ExecAsync<T>(NewRequest(HttpMethod.Get, path, options, config), config, cancellationToken);
@@ -678,7 +678,7 @@ namespace {{packageName}}.Client
678678 /// GlobalConfiguration has been done before calling this method.</param>
679679 /// <param name="cancellationToken">Token that enables callers to cancel the request.</param>
680680 /// <returns>A Task containing ApiResponse</returns>
681- public Task<ApiResponse<T>> PostAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken) )
681+ public Task<ApiResponse<T>> PostAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default)
682682 {
683683 var config = configuration ?? GlobalConfiguration.Instance;
684684 return ExecAsync<T>(NewRequest(HttpMethod.Post, path, options, config), config, cancellationToken);
@@ -693,7 +693,7 @@ namespace {{packageName}}.Client
693693 /// GlobalConfiguration has been done before calling this method.</param>
694694 /// <param name="cancellationToken">Token that enables callers to cancel the request.</param>
695695 /// <returns>A Task containing ApiResponse</returns>
696- public Task<ApiResponse<T>> PutAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken) )
696+ public Task<ApiResponse<T>> PutAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default)
697697 {
698698 var config = configuration ?? GlobalConfiguration.Instance;
699699 return ExecAsync<T>(NewRequest(HttpMethod.Put, path, options, config), config, cancellationToken);
@@ -708,7 +708,7 @@ namespace {{packageName}}.Client
708708 /// GlobalConfiguration has been done before calling this method.</param>
709709 /// <param name="cancellationToken">Token that enables callers to cancel the request.</param>
710710 /// <returns>A Task containing ApiResponse</returns>
711- public Task<ApiResponse<T>> DeleteAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken) )
711+ public Task<ApiResponse<T>> DeleteAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default)
712712 {
713713 var config = configuration ?? GlobalConfiguration.Instance;
714714 return ExecAsync<T>(NewRequest(HttpMethod.Delete, path, options, config), config, cancellationToken);
@@ -723,7 +723,7 @@ namespace {{packageName}}.Client
723723 /// GlobalConfiguration has been done before calling this method.</param>
724724 /// <param name="cancellationToken">Token that enables callers to cancel the request.</param>
725725 /// <returns>A Task containing ApiResponse</returns>
726- public Task<ApiResponse<T>> HeadAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken) )
726+ public Task<ApiResponse<T>> HeadAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default)
727727 {
728728 var config = configuration ?? GlobalConfiguration.Instance;
729729 return ExecAsync<T>(NewRequest(HttpMethod.Head, path, options, config), config, cancellationToken);
@@ -738,7 +738,7 @@ namespace {{packageName}}.Client
738738 /// GlobalConfiguration has been done before calling this method.</param>
739739 /// <param name="cancellationToken">Token that enables callers to cancel the request.</param>
740740 /// <returns>A Task containing ApiResponse</returns>
741- public Task<ApiResponse<T>> OptionsAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken) )
741+ public Task<ApiResponse<T>> OptionsAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default)
742742 {
743743 var config = configuration ?? GlobalConfiguration.Instance;
744744 return ExecAsync<T>(NewRequest(HttpMethod.Options, path, options, config), config, cancellationToken);
@@ -753,7 +753,7 @@ namespace {{packageName}}.Client
753753 /// GlobalConfiguration has been done before calling this method.</param>
754754 /// <param name="cancellationToken">Token that enables callers to cancel the request.</param>
755755 /// <returns>A Task containing ApiResponse</returns>
756- public Task<ApiResponse<T>> PatchAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken) )
756+ public Task<ApiResponse<T>> PatchAsync<T>(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default)
757757 {
758758 var config = configuration ?? GlobalConfiguration.Instance;
759759 return ExecAsync<T>(NewRequest(HttpMethod.Patch, path, options, config), config, cancellationToken);
0 commit comments