Skip to content

Commit ec08b72

Browse files
committed
Update the "using" orders per Vivek's request.
1 parent 29225ac commit ec08b72

17 files changed

+68
-69
lines changed

src/ResourceManager/Resources/Commands.ResourceManager/Cmdlets/Components/ApiVersionHelper.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414

1515
namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Components
1616
{
17+
using Entities.Providers;
18+
using Extensions;
19+
using Microsoft.Azure.Commands.Common.Authentication.Models;
20+
using Microsoft.Azure.Commands.ResourceManager.Common;
1721
using System;
1822
using System.Collections.Generic;
1923
using System.Globalization;
@@ -22,11 +26,6 @@ namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Components
2226
using System.Threading;
2327
using System.Threading.Tasks;
2428

25-
using Entities.Providers;
26-
using Extensions;
27-
using Microsoft.Azure.Commands.Common.Authentication.Models;
28-
using Microsoft.Azure.Commands.ResourceManager.Common;
29-
3029
/// <summary>
3130
/// Helper class for determining the API version
3231
/// </summary>
@@ -109,7 +108,7 @@ private static string[] GetApiVersionsForResourceType(AzureContext context, stri
109108
? "/providers"
110109
: string.Format("/subscriptions/{0}/providers", defaultSubscription.Id);
111110

112-
ResourceProviderDefinition[] providers = PaginatedResponseHelper.Enumerate(
111+
var providers = PaginatedResponseHelper.Enumerate(
113112
getFirstPage: () => resourceManagerClient
114113
.ListObjectColleciton<ResourceProviderDefinition>(
115114
resourceCollectionId: resourceCollectionId,

src/ResourceManager/Resources/Commands.ResourceManager/Cmdlets/Components/HttpClientHelper.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414

1515
namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Components
1616
{
17+
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Handlers;
18+
using Microsoft.Azure.Commands.ResourceManager.Common;
1719
using System.Collections.Generic;
1820
using System.Linq;
1921
using System.Net.Http;
2022
using System.Net.Http.Headers;
21-
using Microsoft.Azure.Commands.ResourceManager.Common;
22-
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Handlers;
2323

2424
/// <summary>
2525
/// Factory class for creating <see cref="HttpClient"/> objects with custom headers.
@@ -63,7 +63,7 @@ public virtual HttpClient CreateHttpClient(params DelegatingHandler[] primaryHan
6363
{
6464
new AuthenticationHandler(cloudCredentials: credentials),
6565
new UserAgentHandler(headerValues: headerValues),
66-
new Handlers.CmdletInfoHandler(cmdletHeaderValues: cmdletHeaderValues),
66+
new CmdletInfoHandler(cmdletHeaderValues: cmdletHeaderValues),
6767
new TracingHandler(),
6868
new RetryHandler(),
6969
};

src/ResourceManager/Resources/Commands.ResourceManager/Cmdlets/Components/QueryFilterBuilder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414

1515
namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Components
1616
{
17+
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Extensions;
18+
using Microsoft.Azure.Commands.ResourceManager.Common;
1719
using System;
1820
using System.Linq;
1921
using System.Text;
20-
using Microsoft.Azure.Commands.ResourceManager.Common;
21-
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Extensions;
2222

2323
/// <summary>
2424
/// A class that builds query filters.

src/ResourceManager/Resources/Commands.ResourceManager/Cmdlets/Extensions/IEnumerableExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414

1515
namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Extensions
1616
{
17+
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Collections;
1718
using System;
1819
using System.Collections.Generic;
1920
using System.Linq;
20-
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Collections;
2121

2222
/// <summary>
2323
/// IEnumerable extension methods

src/ResourceManager/Resources/Commands.ResourceManager/Cmdlets/Implementation/CmdletBase/ResourceManagerCmdletBase.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,6 @@
1414

1515
namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
1616
{
17-
using System;
18-
using System.Collections.Generic;
19-
using System.Threading;
20-
using System.Linq;
21-
using System.Management.Automation;
22-
using System.Runtime.ExceptionServices;
23-
using System.Threading.Tasks;
2417
using Common;
2518
using Microsoft.Azure.Commands.Common.Authentication;
2619
using Microsoft.Azure.Commands.Common.Authentication.Models;
@@ -31,6 +24,13 @@ namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
3124
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.RestClients;
3225
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkClient;
3326
using Newtonsoft.Json.Linq;
27+
using System;
28+
using System.Collections.Generic;
29+
using System.Linq;
30+
using System.Management.Automation;
31+
using System.Runtime.ExceptionServices;
32+
using System.Threading;
33+
using System.Threading.Tasks;
3434

3535
/// <summary>
3636
/// The base class for resource manager cmdlets.

src/ResourceManager/Resources/Commands.ResourceManager/Cmdlets/Implementation/Locations/GetAzureLocationCmdlet.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414

1515
namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
1616
{
17-
using System;
18-
using System.Collections.Generic;
19-
using System.Linq;
20-
using System.Management.Automation;
21-
using Microsoft.Azure.Commands.ResourceManager.Common;
2217
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Extensions;
2318
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels;
19+
using Microsoft.Azure.Commands.ResourceManager.Common;
2420
using Microsoft.Azure.Management.ResourceManager.Models;
2521
using Microsoft.WindowsAzure.Commands.Utilities.Common;
22+
using System;
23+
using System.Collections.Generic;
24+
using System.Linq;
25+
using System.Management.Automation;
2626

2727
/// <summary>
2828
/// Get all locations with the supported providers.

src/ResourceManager/Resources/Commands.ResourceManager/Cmdlets/Implementation/Lock/GetAzureResourceLockCmdlet.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414

1515
namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
1616
{
17-
using System.Management.Automation;
18-
using System.Threading.Tasks;
19-
using Microsoft.Azure.Commands.ResourceManager.Common;
2017
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Extensions;
18+
using Microsoft.Azure.Commands.ResourceManager.Common;
2119
using Newtonsoft.Json.Linq;
20+
using System.Management.Automation;
21+
using System.Threading.Tasks;
2222

2323
/// <summary>
2424
/// Gets the resource lock.

src/ResourceManager/Resources/Commands.ResourceManager/Cmdlets/Implementation/Lock/ResourceLockManagementCmdletBase.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414

1515
namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
1616
{
17-
using System;
18-
using System.Linq;
19-
using System.Management.Automation;
20-
using Microsoft.Azure.Commands.ResourceManager.Common;
2117
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Components;
2218
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Extensions;
19+
using Microsoft.Azure.Commands.ResourceManager.Common;
2320
using Newtonsoft.Json.Linq;
21+
using System;
22+
using System.Linq;
23+
using System.Management.Automation;
2424

2525
/// <summary>
2626
/// Base class for resource lock management cmdlets.

src/ResourceManager/Resources/Commands.ResourceManager/Cmdlets/Implementation/Policy/GetAzurePolicyDefinition.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414

1515
namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
1616
{
17-
using System.Management.Automation;
18-
using System.Threading.Tasks;
19-
using Microsoft.Azure.Commands.ResourceManager.Common;
2017
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Components;
2118
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Extensions;
19+
using Microsoft.Azure.Commands.ResourceManager.Common;
2220
using Newtonsoft.Json.Linq;
21+
using System.Management.Automation;
22+
using System.Threading.Tasks;
2323

2424
/// <summary>
2525
/// Gets the policy definition.

src/ResourceManager/Resources/Commands.ResourceManager/Cmdlets/Implementation/Policy/PolicyAssignmentCmdletBase.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414

1515
namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
1616
{
17+
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Extensions;
18+
using Microsoft.Azure.Commands.ResourceManager.Common;
19+
using Newtonsoft.Json.Linq;
1720
using System.Linq;
1821
using System.Management.Automation;
1922
using System.Threading.Tasks;
20-
using Microsoft.Azure.Commands.ResourceManager.Common;
21-
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Extensions;
22-
using Newtonsoft.Json.Linq;
2323

2424
/// <summary>
2525
/// Base class for policy assignment cmdlets.

src/ResourceManager/Resources/Commands.ResourceManager/Cmdlets/Implementation/Providers/GetAzureProviderCmdlet.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414

1515
namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
1616
{
17-
using System;
18-
using System.Linq;
19-
using System.Management.Automation;
20-
using Microsoft.Azure.Commands.ResourceManager.Common;
2117
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Extensions;
2218
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkExtensions;
2319
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels;
20+
using Microsoft.Azure.Commands.ResourceManager.Common;
21+
using System;
22+
using System.Linq;
23+
using System.Management.Automation;
2424
using ProjectResources = Microsoft.Azure.Commands.ResourceManager.Cmdlets.Properties.Resources;
2525

2626
/// <summary>

src/ResourceManager/Resources/Commands.ResourceManager/Cmdlets/Implementation/Resource/FindAzureResourceCmdlet.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@
1414

1515
namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
1616
{
17+
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Components;
18+
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Resources;
19+
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Extensions;
20+
using Microsoft.Azure.Commands.ResourceManager.Common;
21+
using Newtonsoft.Json.Linq;
1722
using System;
1823
using System.Collections.Concurrent;
1924
using System.Collections.Generic;
2025
using System.Linq;
2126
using System.Management.Automation;
2227
using System.Threading.Tasks;
23-
using Microsoft.Azure.Commands.ResourceManager.Common;
24-
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Components;
25-
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Resources;
26-
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Extensions;
27-
using Newtonsoft.Json.Linq;
2828

2929
/// <summary>
3030
/// Cmdlet to get existing resources from ARM cache.

src/ResourceManager/Resources/Commands.ResourceManager/Cmdlets/Implementation/Resource/GetAzureResourceCmdlet.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@
1414

1515
namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
1616
{
17+
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Components;
18+
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Resources;
19+
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Extensions;
20+
using Microsoft.Azure.Commands.ResourceManager.Common;
21+
using Newtonsoft.Json.Linq;
1722
using System;
1823
using System.Collections.Concurrent;
1924
using System.Collections.Generic;
2025
using System.Linq;
2126
using System.Management.Automation;
2227
using System.Threading.Tasks;
23-
using Microsoft.Azure.Commands.ResourceManager.Common;
24-
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Components;
25-
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Resources;
26-
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Extensions;
27-
using Newtonsoft.Json.Linq;
2828

2929
/// <summary>
3030
/// Cmdlet to get existing resources.

src/ResourceManager/Resources/Commands.ResourceManager/Cmdlets/Implementation/Resource/MoveAzureResourceCmdlet.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414

1515
namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
1616
{
17-
using System;
18-
using System.Collections.Concurrent;
19-
using System.Linq;
20-
using System.Management.Automation;
21-
using Microsoft.Azure.Commands.ResourceManager.Common;
2217
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Components;
2318
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.ResourceGroups;
2419
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Extensions;
20+
using Microsoft.Azure.Commands.ResourceManager.Common;
2521
using Newtonsoft.Json.Linq;
22+
using System;
23+
using System.Collections.Concurrent;
24+
using System.Linq;
25+
using System.Management.Automation;
2626

2727
/// <summary>
2828
/// Moves existing resources to a new resource group or subscription.

src/ResourceManager/Resources/Commands.ResourceManager/Cmdlets/Implementation/ResourceGroupDeployments/GetAzureResourceGroupDeploymentOperationCmdlet.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414

1515
namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
1616
{
17-
using System;
18-
using System.Management.Automation;
19-
using System.Threading.Tasks;
20-
using Microsoft.Azure.Commands.ResourceManager.Common;
2117
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Components;
2218
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Extensions;
19+
using Microsoft.Azure.Commands.ResourceManager.Common;
2320
using Newtonsoft.Json.Linq;
21+
using System;
22+
using System.Management.Automation;
23+
using System.Threading.Tasks;
2424

2525
/// <summary>
2626
/// Gets the deployment operation.

src/ResourceManager/Resources/Commands.ResourceManager/Cmdlets/Implementation/ResourceGroups/FindAzureResourceGroupCmdlet.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414

1515
namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
1616
{
17+
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Extensions;
18+
using Microsoft.Azure.Commands.ResourceManager.Common;
19+
using Microsoft.Azure.Commands.ResourceManager.Common.Tags;
20+
using Newtonsoft.Json.Linq;
1721
using System;
1822
using System.Collections;
1923
using System.Management.Automation;
2024
using System.Threading.Tasks;
21-
using Microsoft.Azure.Commands.ResourceManager.Common;
22-
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Extensions;
23-
using Microsoft.Azure.Commands.ResourceManager.Common.Tags;
24-
using Newtonsoft.Json.Linq;
2525
using ProjectResources = Microsoft.Azure.Commands.ResourceManager.Cmdlets.Properties.Resources;
2626

2727
/// <summary>

src/ResourceManager/Resources/Commands.ResourceManager/Cmdlets/RestClients/ResourceManagerRestRestClient.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@
1414

1515
namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.RestClients
1616
{
17+
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Components;
18+
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Operations;
19+
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Extensions;
20+
using Microsoft.Azure.Commands.ResourceManager.Common;
21+
using Newtonsoft.Json.Linq;
1722
using System;
1823
using System.Linq;
1924
using System.Net;
2025
using System.Net.Http;
2126
using System.Text;
2227
using System.Threading;
2328
using System.Threading.Tasks;
24-
using Microsoft.Azure.Commands.ResourceManager.Common;
25-
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Components;
26-
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.Operations;
27-
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Extensions;
28-
using Newtonsoft.Json.Linq;
2929

3030
/// <summary>
3131
/// A client for managing resources behind the Azure Resource Manager service.

0 commit comments

Comments
 (0)