Skip to content
Closed
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion samples/AppConfiguration/AppConfiguration.csproj

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ private static AvailabilitySetsRestOperations GetAvailabilitySetsRestOperations(
/// <return> A collection of resource operations that may take multiple service requests to iterate over. </return>
public static AsyncPageable<AvailabilitySet> ListAvailabilitySetAsync(this SubscriptionOperations subscription, CancellationToken cancellationToken = default)
{
return subscription.ListResources((baseUri, credential, options, pipeline) =>
return subscription.ListResourcesAsync((baseUri, credential, options, pipeline) =>
{
var clientDiagnostics = new ClientDiagnostics(options);
var restOperations = GetAvailabilitySetsRestOperations(clientDiagnostics, credential, options, pipeline, subscription.Id.SubscriptionId, baseUri);
Expand Down Expand Up @@ -180,7 +180,7 @@ private static ProximityPlacementGroupsRestOperations GetProximityPlacementGroup
/// <return> A collection of resource operations that may take multiple service requests to iterate over. </return>
public static AsyncPageable<ProximityPlacementGroup> ListProximityPlacementGroupAsync(this SubscriptionOperations subscription, CancellationToken cancellationToken = default)
{
return subscription.ListResources((baseUri, credential, options, pipeline) =>
return subscription.ListResourcesAsync((baseUri, credential, options, pipeline) =>
{
var clientDiagnostics = new ClientDiagnostics(options);
var restOperations = GetProximityPlacementGroupsRestOperations(clientDiagnostics, credential, options, pipeline, subscription.Id.SubscriptionId, baseUri);
Expand Down Expand Up @@ -327,7 +327,7 @@ private static DedicatedHostGroupsRestOperations GetDedicatedHostGroupsRestOpera
/// <return> A collection of resource operations that may take multiple service requests to iterate over. </return>
public static AsyncPageable<DedicatedHostGroup> ListDedicatedHostGroupAsync(this SubscriptionOperations subscription, CancellationToken cancellationToken = default)
{
return subscription.ListResources((baseUri, credential, options, pipeline) =>
return subscription.ListResourcesAsync((baseUri, credential, options, pipeline) =>
{
var clientDiagnostics = new ClientDiagnostics(options);
var restOperations = GetDedicatedHostGroupsRestOperations(clientDiagnostics, credential, options, pipeline, subscription.Id.SubscriptionId, baseUri);
Expand Down Expand Up @@ -474,7 +474,7 @@ private static SshPublicKeysRestOperations GetSshPublicKeysRestOperations(Client
/// <return> A collection of resource operations that may take multiple service requests to iterate over. </return>
public static AsyncPageable<SshPublicKey> ListSshPublicKeyAsync(this SubscriptionOperations subscription, CancellationToken cancellationToken = default)
{
return subscription.ListResources((baseUri, credential, options, pipeline) =>
return subscription.ListResourcesAsync((baseUri, credential, options, pipeline) =>
{
var clientDiagnostics = new ClientDiagnostics(options);
var restOperations = GetSshPublicKeysRestOperations(clientDiagnostics, credential, options, pipeline, subscription.Id.SubscriptionId, baseUri);
Expand Down Expand Up @@ -621,7 +621,7 @@ private static VirtualMachinesRestOperations GetVirtualMachinesRestOperations(Cl
/// <return> A collection of resource operations that may take multiple service requests to iterate over. </return>
public static AsyncPageable<VirtualMachine> ListVirtualMachineAsync(this SubscriptionOperations subscription, CancellationToken cancellationToken = default)
{
return subscription.ListResources((baseUri, credential, options, pipeline) =>
return subscription.ListResourcesAsync((baseUri, credential, options, pipeline) =>
{
var clientDiagnostics = new ClientDiagnostics(options);
var restOperations = GetVirtualMachinesRestOperations(clientDiagnostics, credential, options, pipeline, subscription.Id.SubscriptionId, baseUri);
Expand Down Expand Up @@ -770,7 +770,7 @@ private static VirtualMachineScaleSetsRestOperations GetVirtualMachineScaleSetsR
/// <return> A collection of resource operations that may take multiple service requests to iterate over. </return>
public static AsyncPageable<VirtualMachineScaleSet> ListVirtualMachineScaleSetAsync(this SubscriptionOperations subscription, CancellationToken cancellationToken = default)
{
return subscription.ListResources((baseUri, credential, options, pipeline) =>
return subscription.ListResourcesAsync((baseUri, credential, options, pipeline) =>
{
var clientDiagnostics = new ClientDiagnostics(options);
var restOperations = GetVirtualMachineScaleSetsRestOperations(clientDiagnostics, credential, options, pipeline, subscription.Id.SubscriptionId, baseUri);
Expand Down
2 changes: 1 addition & 1 deletion samples/Azure.Storage.Tables/Azure.Storage.Tables.csproj

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion samples/CognitiveSearch/CognitiveSearch.csproj

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/AutoRest.CSharp/AutoRest.CSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Azure.Core" Version="1.14.0" />
<PackageReference Include="Azure.Core" Version="1.15.0" />
<PackageReference Include="Azure.Core.Experimental" Version="0.1.0-preview.12" />
<PackageReference Include="Azure.ResourceManager.Core" Version="1.0.0-alpha.20210526.3" />
<PackageReference Include="Azure.ResourceManager.Core" Version="1.0.0-alpha.20210608.3" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="3.10.0-1.final" />
<PackageReference Include="YamlDotNet" Version="8.1.2" />
</ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions src/AutoRest.CSharp/Common/AutoRest/Plugins/CSharpProj.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ internal class CSharpProj : IPlugin
</PropertyGroup>
{0}
<ItemGroup>
<PackageReference Include=""Azure.Core"" Version=""1.14.0"" />
<PackageReference Include=""Azure.Core"" Version=""1.15.0"" />
</ItemGroup>

</Project>
Expand All @@ -37,7 +37,7 @@ internal class CSharpProj : IPlugin
</PropertyGroup>

<ItemGroup>
<PackageReference Include=""Azure.ResourceManager.Core"" Version=""1.0.0-alpha.20210526.3"" />
<PackageReference Include=""Azure.ResourceManager.Core"" Version=""1.0.0-alpha.20210608.3"" />
</ItemGroup>
";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ private void WriteListResourceMethod(CodeWriter writer, Resource resource, Resou
var methodName = $"List{resource.Type.Name}";
using (writer.Scope($"public static {responseType} {CreateMethodName(methodName, async)}(this {typeof(SubscriptionOperations)} subscription, {typeof(CancellationToken)} cancellationToken = default)"))
{
writer.Append($"return subscription.ListResources((baseUri, credential, options, pipeline) =>");
writer.Append($"return subscription.{CreateMethodName("ListResources", async)}((baseUri, credential, options, pipeline) =>");
using (writer.Scope())
{
var clientDiagnostics = new CodeWriterDeclaration("clientDiagnostics");
Expand Down
4 changes: 2 additions & 2 deletions test/AutoRest.Shared.Tests/AutoRest.Shared.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Azure.Core" Version="1.14.0" />
<PackageReference Include="Azure.Core" Version="1.15.0" />

<PackageReference Include="nunit" Version="3.12.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.15.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" />
<PackageReference Include="Azure.ResourceManager.Core" Version="1.0.0-alpha.20210526.3" />
<PackageReference Include="Azure.ResourceManager.Core" Version="1.0.0-alpha.20210608.3" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Azure.Core" Version="1.14" />
<PackageReference Include="Azure.Core" Version="1.15.0" />
<PackageReference Include="Azure.Core.Experimental" Version="0.1.0-preview.12" />
<PackageReference Include="Azure.Identity" Version="1.0.0" />
<PackageReference Include="Azure.ResourceManager.Core" Version="1.0.0-alpha.20210526.3" />
<PackageReference Include="Azure.ResourceManager.Core" Version="1.0.0-alpha.20210608.3" />
<PackageReference Include="Microsoft.AspNetCore.Server.Kestrel" Version="2.2.0" />
<PackageReference Include="nunit" Version="3.12.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.15.1" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Azure.Core" Version="1.14.0" />
<PackageReference Include="Azure.Core" Version="1.15.0" />
<PackageReference Include="Azure.Core.Experimental" Version="0.1.0-preview.12" />
<PackageReference Include="Azure.Identity" Version="1.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Server.Kestrel" Version="2.2.0" />
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/TestProjects/Accessibility/Accessibility.csproj

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/TestProjects/Inheritance/Inheritance.csproj

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/TestProjects/JsonAsBinary/JsonAsBinary.csproj

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions test/TestProjects/MgmtOperations/MgmtOperations.csproj

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ private static AvailabilitySetsRestOperations GetAvailabilitySetsRestOperations(
/// <return> A collection of resource operations that may take multiple service requests to iterate over. </return>
public static AsyncPageable<AvailabilitySet> ListAvailabilitySetAsync(this SubscriptionOperations subscription, CancellationToken cancellationToken = default)
{
return subscription.ListResources((baseUri, credential, options, pipeline) =>
return subscription.ListResourcesAsync((baseUri, credential, options, pipeline) =>
{
var clientDiagnostics = new ClientDiagnostics(options);
var restOperations = GetAvailabilitySetsRestOperations(clientDiagnostics, credential, options, pipeline, subscription.Id.SubscriptionId, baseUri);
Expand Down
4 changes: 2 additions & 2 deletions test/TestProjects/MgmtParent/MgmtParent.csproj

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions test/TestProjects/MgmtSingleton/MgmtSingleton.csproj

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading