Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .chronus/changes/bump-tcgc-csharp-2026-3-13-21-49-0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: dependencies
packages:
- "@typespec/http-client-csharp"
---

Bump `@azure-tools/typespec-client-generator-core` from 0.66.0 to 0.66.2
Original file line number Diff line number Diff line change
Expand Up @@ -47,23 +47,10 @@ internal AnimalOperations(ClientPipeline pipeline, Uri endpoint)
/// <returns> The response returned from the service. </returns>
public virtual ClientResult UpdatePetAsAnimal(BinaryContent content, RequestOptions options = null)
{
try
{
System.Console.WriteLine("Entering method UpdatePetAsAnimal.");
Argument.AssertNotNull(content, nameof(content));
Argument.AssertNotNull(content, nameof(content));

using PipelineMessage message = CreateUpdatePetAsAnimalRequest(content, options);
return ClientResult.FromResponse(Pipeline.ProcessMessage(message, options));
}
catch (Exception ex)
{
System.Console.WriteLine($"An exception was thrown in method UpdatePetAsAnimal: {ex}");
throw;
}
finally
{
System.Console.WriteLine("Exiting method UpdatePetAsAnimal.");
}
using PipelineMessage message = CreateUpdatePetAsAnimalRequest(content, options);
return ClientResult.FromResponse(Pipeline.ProcessMessage(message, options));
}

/// <summary>
Expand All @@ -81,23 +68,10 @@ public virtual ClientResult UpdatePetAsAnimal(BinaryContent content, RequestOpti
/// <returns> The response returned from the service. </returns>
public virtual async Task<ClientResult> UpdatePetAsAnimalAsync(BinaryContent content, RequestOptions options = null)
{
try
{
System.Console.WriteLine("Entering method UpdatePetAsAnimalAsync.");
Argument.AssertNotNull(content, nameof(content));
Argument.AssertNotNull(content, nameof(content));

using PipelineMessage message = CreateUpdatePetAsAnimalRequest(content, options);
return ClientResult.FromResponse(await Pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false));
}
catch (Exception ex)
{
System.Console.WriteLine($"An exception was thrown in method UpdatePetAsAnimalAsync: {ex}");
throw;
}
finally
{
System.Console.WriteLine("Exiting method UpdatePetAsAnimalAsync.");
}
using PipelineMessage message = CreateUpdatePetAsAnimalRequest(content, options);
return ClientResult.FromResponse(await Pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false));
}

/// <summary> Update a pet as an animal. </summary>
Expand All @@ -107,23 +81,10 @@ public virtual async Task<ClientResult> UpdatePetAsAnimalAsync(BinaryContent con
/// <exception cref="ClientResultException"> Service returned a non-success status code. </exception>
public virtual ClientResult<Animal> UpdatePetAsAnimal(Animal animal, CancellationToken cancellationToken = default)
{
try
{
System.Console.WriteLine("Entering method UpdatePetAsAnimal.");
Argument.AssertNotNull(animal, nameof(animal));
Argument.AssertNotNull(animal, nameof(animal));

ClientResult result = UpdatePetAsAnimal(animal, cancellationToken.ToRequestOptions());
return ClientResult.FromValue((Animal)result, result.GetRawResponse());
}
catch (Exception ex)
{
System.Console.WriteLine($"An exception was thrown in method UpdatePetAsAnimal: {ex}");
throw;
}
finally
{
System.Console.WriteLine("Exiting method UpdatePetAsAnimal.");
}
ClientResult result = UpdatePetAsAnimal(animal, cancellationToken.ToRequestOptions());
return ClientResult.FromValue((Animal)result, result.GetRawResponse());
}

/// <summary> Update a pet as an animal. </summary>
Expand All @@ -133,23 +94,10 @@ public virtual ClientResult<Animal> UpdatePetAsAnimal(Animal animal, Cancellatio
/// <exception cref="ClientResultException"> Service returned a non-success status code. </exception>
public virtual async Task<ClientResult<Animal>> UpdatePetAsAnimalAsync(Animal animal, CancellationToken cancellationToken = default)
{
try
{
System.Console.WriteLine("Entering method UpdatePetAsAnimalAsync.");
Argument.AssertNotNull(animal, nameof(animal));
Argument.AssertNotNull(animal, nameof(animal));

ClientResult result = await UpdatePetAsAnimalAsync(animal, cancellationToken.ToRequestOptions()).ConfigureAwait(false);
return ClientResult.FromValue((Animal)result, result.GetRawResponse());
}
catch (Exception ex)
{
System.Console.WriteLine($"An exception was thrown in method UpdatePetAsAnimalAsync: {ex}");
throw;
}
finally
{
System.Console.WriteLine("Exiting method UpdatePetAsAnimalAsync.");
}
ClientResult result = await UpdatePetAsAnimalAsync(animal, cancellationToken.ToRequestOptions()).ConfigureAwait(false);
return ClientResult.FromValue((Animal)result, result.GetRawResponse());
}

/// <summary>
Expand All @@ -167,23 +115,10 @@ public virtual async Task<ClientResult<Animal>> UpdatePetAsAnimalAsync(Animal an
/// <returns> The response returned from the service. </returns>
public virtual ClientResult UpdateDogAsAnimal(BinaryContent content, RequestOptions options = null)
{
try
{
System.Console.WriteLine("Entering method UpdateDogAsAnimal.");
Argument.AssertNotNull(content, nameof(content));
Argument.AssertNotNull(content, nameof(content));

using PipelineMessage message = CreateUpdateDogAsAnimalRequest(content, options);
return ClientResult.FromResponse(Pipeline.ProcessMessage(message, options));
}
catch (Exception ex)
{
System.Console.WriteLine($"An exception was thrown in method UpdateDogAsAnimal: {ex}");
throw;
}
finally
{
System.Console.WriteLine("Exiting method UpdateDogAsAnimal.");
}
using PipelineMessage message = CreateUpdateDogAsAnimalRequest(content, options);
return ClientResult.FromResponse(Pipeline.ProcessMessage(message, options));
}

/// <summary>
Expand All @@ -201,23 +136,10 @@ public virtual ClientResult UpdateDogAsAnimal(BinaryContent content, RequestOpti
/// <returns> The response returned from the service. </returns>
public virtual async Task<ClientResult> UpdateDogAsAnimalAsync(BinaryContent content, RequestOptions options = null)
{
try
{
System.Console.WriteLine("Entering method UpdateDogAsAnimalAsync.");
Argument.AssertNotNull(content, nameof(content));
Argument.AssertNotNull(content, nameof(content));

using PipelineMessage message = CreateUpdateDogAsAnimalRequest(content, options);
return ClientResult.FromResponse(await Pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false));
}
catch (Exception ex)
{
System.Console.WriteLine($"An exception was thrown in method UpdateDogAsAnimalAsync: {ex}");
throw;
}
finally
{
System.Console.WriteLine("Exiting method UpdateDogAsAnimalAsync.");
}
using PipelineMessage message = CreateUpdateDogAsAnimalRequest(content, options);
return ClientResult.FromResponse(await Pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false));
}

/// <summary> Update a dog as an animal. </summary>
Expand All @@ -227,23 +149,10 @@ public virtual async Task<ClientResult> UpdateDogAsAnimalAsync(BinaryContent con
/// <exception cref="ClientResultException"> Service returned a non-success status code. </exception>
public virtual ClientResult<Animal> UpdateDogAsAnimal(Animal animal, CancellationToken cancellationToken = default)
{
try
{
System.Console.WriteLine("Entering method UpdateDogAsAnimal.");
Argument.AssertNotNull(animal, nameof(animal));
Argument.AssertNotNull(animal, nameof(animal));

ClientResult result = UpdateDogAsAnimal(animal, cancellationToken.ToRequestOptions());
return ClientResult.FromValue((Animal)result, result.GetRawResponse());
}
catch (Exception ex)
{
System.Console.WriteLine($"An exception was thrown in method UpdateDogAsAnimal: {ex}");
throw;
}
finally
{
System.Console.WriteLine("Exiting method UpdateDogAsAnimal.");
}
ClientResult result = UpdateDogAsAnimal(animal, cancellationToken.ToRequestOptions());
return ClientResult.FromValue((Animal)result, result.GetRawResponse());
}

/// <summary> Update a dog as an animal. </summary>
Expand All @@ -253,23 +162,10 @@ public virtual ClientResult<Animal> UpdateDogAsAnimal(Animal animal, Cancellatio
/// <exception cref="ClientResultException"> Service returned a non-success status code. </exception>
public virtual async Task<ClientResult<Animal>> UpdateDogAsAnimalAsync(Animal animal, CancellationToken cancellationToken = default)
{
try
{
System.Console.WriteLine("Entering method UpdateDogAsAnimalAsync.");
Argument.AssertNotNull(animal, nameof(animal));
Argument.AssertNotNull(animal, nameof(animal));

ClientResult result = await UpdateDogAsAnimalAsync(animal, cancellationToken.ToRequestOptions()).ConfigureAwait(false);
return ClientResult.FromValue((Animal)result, result.GetRawResponse());
}
catch (Exception ex)
{
System.Console.WriteLine($"An exception was thrown in method UpdateDogAsAnimalAsync: {ex}");
throw;
}
finally
{
System.Console.WriteLine("Exiting method UpdateDogAsAnimalAsync.");
}
ClientResult result = await UpdateDogAsAnimalAsync(animal, cancellationToken.ToRequestOptions()).ConfigureAwait(false);
return ClientResult.FromValue((Animal)result, result.GetRawResponse());
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,23 +47,10 @@ internal DogOperations(ClientPipeline pipeline, Uri endpoint)
/// <returns> The response returned from the service. </returns>
public virtual ClientResult UpdateDogAsDog(BinaryContent content, RequestOptions options = null)
{
try
{
System.Console.WriteLine("Entering method UpdateDogAsDog.");
Argument.AssertNotNull(content, nameof(content));
Argument.AssertNotNull(content, nameof(content));

using PipelineMessage message = CreateUpdateDogAsDogRequest(content, options);
return ClientResult.FromResponse(Pipeline.ProcessMessage(message, options));
}
catch (Exception ex)
{
System.Console.WriteLine($"An exception was thrown in method UpdateDogAsDog: {ex}");
throw;
}
finally
{
System.Console.WriteLine("Exiting method UpdateDogAsDog.");
}
using PipelineMessage message = CreateUpdateDogAsDogRequest(content, options);
return ClientResult.FromResponse(Pipeline.ProcessMessage(message, options));
}

/// <summary>
Expand All @@ -81,23 +68,10 @@ public virtual ClientResult UpdateDogAsDog(BinaryContent content, RequestOptions
/// <returns> The response returned from the service. </returns>
public virtual async Task<ClientResult> UpdateDogAsDogAsync(BinaryContent content, RequestOptions options = null)
{
try
{
System.Console.WriteLine("Entering method UpdateDogAsDogAsync.");
Argument.AssertNotNull(content, nameof(content));
Argument.AssertNotNull(content, nameof(content));

using PipelineMessage message = CreateUpdateDogAsDogRequest(content, options);
return ClientResult.FromResponse(await Pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false));
}
catch (Exception ex)
{
System.Console.WriteLine($"An exception was thrown in method UpdateDogAsDogAsync: {ex}");
throw;
}
finally
{
System.Console.WriteLine("Exiting method UpdateDogAsDogAsync.");
}
using PipelineMessage message = CreateUpdateDogAsDogRequest(content, options);
return ClientResult.FromResponse(await Pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false));
}

/// <summary> Update a dog as a dog. </summary>
Expand All @@ -107,23 +81,10 @@ public virtual async Task<ClientResult> UpdateDogAsDogAsync(BinaryContent conten
/// <exception cref="ClientResultException"> Service returned a non-success status code. </exception>
public virtual ClientResult<Dog> UpdateDogAsDog(Dog dog, CancellationToken cancellationToken = default)
{
try
{
System.Console.WriteLine("Entering method UpdateDogAsDog.");
Argument.AssertNotNull(dog, nameof(dog));
Argument.AssertNotNull(dog, nameof(dog));

ClientResult result = UpdateDogAsDog(dog, cancellationToken.ToRequestOptions());
return ClientResult.FromValue((Dog)result, result.GetRawResponse());
}
catch (Exception ex)
{
System.Console.WriteLine($"An exception was thrown in method UpdateDogAsDog: {ex}");
throw;
}
finally
{
System.Console.WriteLine("Exiting method UpdateDogAsDog.");
}
ClientResult result = UpdateDogAsDog(dog, cancellationToken.ToRequestOptions());
return ClientResult.FromValue((Dog)result, result.GetRawResponse());
}

/// <summary> Update a dog as a dog. </summary>
Expand All @@ -133,23 +94,10 @@ public virtual ClientResult<Dog> UpdateDogAsDog(Dog dog, CancellationToken cance
/// <exception cref="ClientResultException"> Service returned a non-success status code. </exception>
public virtual async Task<ClientResult<Dog>> UpdateDogAsDogAsync(Dog dog, CancellationToken cancellationToken = default)
{
try
{
System.Console.WriteLine("Entering method UpdateDogAsDogAsync.");
Argument.AssertNotNull(dog, nameof(dog));
Argument.AssertNotNull(dog, nameof(dog));

ClientResult result = await UpdateDogAsDogAsync(dog, cancellationToken.ToRequestOptions()).ConfigureAwait(false);
return ClientResult.FromValue((Dog)result, result.GetRawResponse());
}
catch (Exception ex)
{
System.Console.WriteLine($"An exception was thrown in method UpdateDogAsDogAsync: {ex}");
throw;
}
finally
{
System.Console.WriteLine("Exiting method UpdateDogAsDogAsync.");
}
ClientResult result = await UpdateDogAsDogAsync(dog, cancellationToken.ToRequestOptions()).ConfigureAwait(false);
return ClientResult.FromValue((Dog)result, result.GetRawResponse());
}
}
}
Loading
Loading