Skip to content

Commit 05d1c9a

Browse files
ogailogail
authored andcommitted
Remove and sort usings / fix compilation error
1 parent 87a1f6f commit 05d1c9a

18 files changed

+39
-47
lines changed

src/Common/Commands.Common/AzurePSCmdlet.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15+
using System;
1516
using System.Collections.Concurrent;
17+
using System.Diagnostics;
18+
using System.IO;
19+
using System.Management.Automation;
1620
using Microsoft.Azure.Common.Authentication;
1721
using Microsoft.Azure.Common.Authentication.Models;
1822
using Microsoft.IdentityModel.Clients.ActiveDirectory;
1923
using Microsoft.WindowsAzure.Commands.Common;
2024
using Microsoft.WindowsAzure.Commands.Common.Properties;
21-
using System;
22-
using System.Diagnostics;
23-
using System.IO;
24-
using System.Management.Automation;
2525

2626
namespace Microsoft.WindowsAzure.Commands.Utilities.Common
2727
{

src/Common/Commands.Common/AzurePowerShell.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using Microsoft.Azure.Common.Authentication.Properties;
1615
using System;
1716
using System.IO;
1817
using System.Net.Http.Headers;
18+
using Microsoft.Azure.Common.Authentication.Properties;
1919

2020
namespace Microsoft.WindowsAzure.Commands.Common
2121
{

src/Common/Commands.Common/ChannelHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using Microsoft.WindowsAzure.Commands.Common;
16-
using Microsoft.WindowsAzure.Commands.ServiceManagement.Model;
1715
using System;
1816
using System.Diagnostics.CodeAnalysis;
1917
using System.IO;
@@ -29,6 +27,8 @@
2927
using System.Text;
3028
using System.Threading;
3129
using System.Xml;
30+
using Microsoft.WindowsAzure.Commands.Common;
31+
using Microsoft.WindowsAzure.Commands.ServiceManagement.Model;
3232

3333
namespace Microsoft.WindowsAzure.Commands.Utilities.Common
3434
{

src/Common/Commands.Common/CloudBaseCmdlet.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using Microsoft.Azure.Common.Authentication;
16-
using Microsoft.Azure.Common.Authentication.Models;
17-
using Microsoft.WindowsAzure.Commands.Common.Properties;
18-
using Microsoft.WindowsAzure.Commands.ServiceManagement.Model;
1915
using System;
2016
using System.Diagnostics;
2117
using System.Globalization;
@@ -24,6 +20,10 @@
2420
using System.ServiceModel;
2521
using System.ServiceModel.Channels;
2622
using System.ServiceModel.Security;
23+
using Microsoft.Azure.Common.Authentication;
24+
using Microsoft.Azure.Common.Authentication.Models;
25+
using Microsoft.WindowsAzure.Commands.Common.Properties;
26+
using Microsoft.WindowsAzure.Commands.ServiceManagement.Model;
2727

2828
namespace Microsoft.WindowsAzure.Commands.Utilities.Common
2929
{

src/Common/Commands.Common/ComputeCloudException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using Hyak.Common;
1615
using System;
1716
using System.Linq;
1817
using System.Text;
18+
using Hyak.Common;
1919

2020
namespace Microsoft.WindowsAzure.Commands.Common
2121
{

src/Common/Commands.Common/DebugStreamTraceListener.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,8 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using System;
1615
using System.Collections.Concurrent;
17-
using System.Collections.Generic;
18-
using System.Linq;
19-
using System.Text;
20-
using System.Threading.Tasks;
2116
using System.Diagnostics;
22-
using System.IO;
2317
using Microsoft.IdentityModel.Clients.ActiveDirectory;
2418

2519
namespace Microsoft.WindowsAzure.Commands.Common

src/Common/Commands.Common/DiagnosticsHelper.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,12 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using Microsoft.WindowsAzure.Commands.Common.Properties;
1615
using System;
1716
using System.Collections;
1817
using System.IO;
19-
using System.Linq;
2018
using System.Text;
2119
using System.Xml;
20+
using Microsoft.WindowsAzure.Commands.Common.Properties;
2221
using Newtonsoft.Json;
2322

2423
namespace Microsoft.WindowsAzure.Commands.Utilities.Common

src/Common/Commands.Common/ErrorHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using Microsoft.WindowsAzure.Commands.Common;
16-
using Microsoft.WindowsAzure.Commands.ServiceManagement.Model;
1715
using System.IO;
1816
using System.Net;
1917
using System.ServiceModel;
2018
using System.Xml;
19+
using Microsoft.WindowsAzure.Commands.Common;
20+
using Microsoft.WindowsAzure.Commands.ServiceManagement.Model;
2121

2222
namespace Microsoft.WindowsAzure.Commands.Utilities.Common
2323
{

src/Common/Commands.Common/GeneralUtilities.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using Hyak.Common;
16-
using Microsoft.Azure.Common.Authentication;
17-
using Microsoft.WindowsAzure.Commands.Common;
1815
using System;
1916
using System.Collections.Generic;
2017
using System.Diagnostics;
@@ -29,6 +26,9 @@
2926
using System.ServiceModel.Channels;
3027
using System.Text;
3128
using System.Xml;
29+
using Hyak.Common;
30+
using Microsoft.Azure.Common.Authentication;
31+
using Microsoft.WindowsAzure.Commands.Common;
3232

3333
namespace Microsoft.WindowsAzure.Commands.Utilities.Common
3434
{

src/Common/Commands.Common/HttpClientExtensions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
// ----------------------------------------------------------------------------------
1414

1515

16-
using Microsoft.Azure.Common.Authentication;
17-
using Microsoft.WindowsAzure.Commands.Common;
18-
using Newtonsoft.Json;
1916
using System;
2017
using System.Net;
2118
using System.Net.Http;
2219
using System.Net.Http.Headers;
20+
using Microsoft.Azure.Common.Authentication;
21+
using Microsoft.WindowsAzure.Commands.Common;
22+
using Newtonsoft.Json;
2323

2424
namespace Microsoft.WindowsAzure.Commands.Utilities.Common
2525
{

src/Common/Commands.Common/ProfileClient.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using Hyak.Common;
16-
using Microsoft.Azure.Common.Authentication.Factories;
17-
using Microsoft.Azure.Common.Authentication.Models;
18-
using Microsoft.Azure.Common.Authentication.Properties;
1915
using System;
2016
using System.Collections.Generic;
2117
using System.Diagnostics;
2218
using System.IO;
2319
using System.Linq;
2420
using System.Security;
2521
using System.Security.Cryptography.X509Certificates;
22+
using Hyak.Common;
23+
using Microsoft.Azure.Common.Authentication.Factories;
24+
using Microsoft.Azure.Common.Authentication.Models;
25+
using Microsoft.Azure.Common.Authentication.Properties;
2626
using Microsoft.WindowsAzure.Subscriptions;
2727

2828
namespace Microsoft.Azure.Common.Authentication

src/Common/Commands.Common/Properties/Resources.Designer.cs

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Common/Commands.Common/PublishSettingsImporter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using Microsoft.Azure.Common.Authentication.Models;
16-
using Microsoft.Azure.Common.Authentication.XmlSchema;
1715
using System;
1816
using System.Collections.Generic;
1917
using System.IO;
2018
using System.Linq;
2119
using System.Security.Cryptography.X509Certificates;
2220
using System.Xml.Serialization;
21+
using Microsoft.Azure.Common.Authentication.Models;
22+
using Microsoft.Azure.Common.Authentication.XmlSchema;
2323

2424
namespace Microsoft.Azure.Common.Authentication
2525
{

src/Common/Commands.Common/RPRegistrationAction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using Hyak.Common;
1615
using System.Collections.Generic;
1716
using System.Diagnostics;
1817
using System.Linq;
1918
using System.Net;
19+
using Hyak.Common;
2020
using Microsoft.Azure.Management.Resources;
2121
using Microsoft.WindowsAzure.Management;
2222

src/Common/Commands.Common/RecordingTracingInterceptor.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,12 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using Hyak.Common;
16-
using Microsoft.WindowsAzure;
17-
using Microsoft.WindowsAzure.Commands.Utilities.Common;
1815
using System;
1916
using System.Collections.Concurrent;
2017
using System.Collections.Generic;
2118
using System.Net.Http;
19+
using Hyak.Common;
20+
using Microsoft.WindowsAzure.Commands.Utilities.Common;
2221

2322
namespace Microsoft.Azure.Common.Authentication.Models
2423
{

src/Common/Commands.Common/ServiceManagementTypes.cs

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

1515
//TODO: When transition to SM.NET is completed, rename the namespace to "Microsoft.WindowsAzure.ServiceManagement"
1616

17-
using Microsoft.WindowsAzure.Commands.Common.Properties;
1817
using System;
1918
using System.Collections.Generic;
2019
using System.Collections.ObjectModel;
@@ -28,6 +27,7 @@
2827
using System.ServiceModel.Web;
2928
using System.Text;
3029
using System.Xml;
30+
using Microsoft.WindowsAzure.Commands.Common.Properties;
3131

3232
namespace Microsoft.WindowsAzure.Commands.ServiceManagement.Model
3333
{

src/ResourceManager/Sql/Commands.Sql/Location Capabilities/Services/AzureSqlCapabilitiesAdapter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ public class AzureSqlCapabilitiesAdapter
3030
/// <summary>
3131
/// Gets or sets the Azure profile
3232
/// </summary>
33-
public AzureProfile Profile { get; set; }
33+
public AzureSMProfile Profile { get; set; }
3434

3535
/// <summary>
3636
/// Constructs a firewall rule adapter
3737
/// </summary>
3838
/// <param name="profile">The current azure profile</param>
3939
/// <param name="subscription">The current azure subscription</param>
40-
public AzureSqlCapabilitiesAdapter(AzureProfile profile, AzureSubscription subscription)
40+
public AzureSqlCapabilitiesAdapter(AzureSMProfile profile, AzureSubscription subscription)
4141
{
4242
Profile = profile;
4343
_communicator = new AzureSqlCapabilitiesCommunicator(Profile, subscription);

src/ResourceManager/Sql/Commands.Sql/Location Capabilities/Services/AzureSqlCapabilitiesCommunicator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ public class AzureSqlCapabilitiesCommunicator
3838
/// <summary>
3939
/// Gets or sets the Azure profile
4040
/// </summary>
41-
public AzureProfile Profile { get; set; }
41+
public AzureSMProfile Profile { get; set; }
4242

4343
/// <summary>
4444
/// Creates a communicator for Azure Sql Databases FirewallRules
4545
/// </summary>
4646
/// <param name="profile"></param>
4747
/// <param name="subscription"></param>
48-
public AzureSqlCapabilitiesCommunicator(AzureProfile profile, AzureSubscription subscription)
48+
public AzureSqlCapabilitiesCommunicator(AzureSMProfile profile, AzureSubscription subscription)
4949
{
5050
Profile = profile;
5151
if (subscription != Subscription)

0 commit comments

Comments
 (0)