Skip to content

Commit a0c23b4

Browse files
committed
Migrate Network project
1 parent 8201a0b commit a0c23b4

File tree

154 files changed

+306
-301
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

154 files changed

+306
-301
lines changed

src/ResourceManager.sln

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sync", "ServiceManagement\C
9999
EndProject
100100
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VhdManagement", "ServiceManagement\Compute\VhdManagement\VhdManagement.csproj", "{80496B7B-068A-4A1E-B0BB-4B1FFF3FA616}"
101101
EndProject
102+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Network.Test", "ResourceManager\Network\Commands.Network.Test\Commands.Network.Test.csproj", "{A2DF4FE5-46EE-43E2-B246-E5CDDD47B752}"
103+
EndProject
102104
Global
103105
GlobalSection(SolutionConfigurationPlatforms) = preSolution
104106
Debug|Any CPU = Debug|Any CPU
@@ -281,6 +283,10 @@ Global
281283
{80496B7B-068A-4A1E-B0BB-4B1FFF3FA616}.Debug|Any CPU.Build.0 = Debug|Any CPU
282284
{80496B7B-068A-4A1E-B0BB-4B1FFF3FA616}.Release|Any CPU.ActiveCfg = Release|Any CPU
283285
{80496B7B-068A-4A1E-B0BB-4B1FFF3FA616}.Release|Any CPU.Build.0 = Release|Any CPU
286+
{A2DF4FE5-46EE-43E2-B246-E5CDDD47B752}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
287+
{A2DF4FE5-46EE-43E2-B246-E5CDDD47B752}.Debug|Any CPU.Build.0 = Debug|Any CPU
288+
{A2DF4FE5-46EE-43E2-B246-E5CDDD47B752}.Release|Any CPU.ActiveCfg = Release|Any CPU
289+
{A2DF4FE5-46EE-43E2-B246-E5CDDD47B752}.Release|Any CPU.Build.0 = Release|Any CPU
284290
EndGlobalSection
285291
GlobalSection(SolutionProperties) = preSolution
286292
HideSolutionNode = FALSE
@@ -299,5 +305,6 @@ Global
299305
{469F20E0-9D40-41AD-94C3-B47AD15A4C00} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
300306
{080B0477-7E52-4455-90AB-23BD13D1B1CE} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
301307
{7D1D3B56-4EB4-4819-86FD-43330DED8EE7} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
308+
{A2DF4FE5-46EE-43E2-B246-E5CDDD47B752} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
302309
EndGlobalSection
303310
EndGlobal

src/ResourceManager/Compute/Commands.Compute/RemoteDesktop/VirtualMachineRemoteDesktopBaseCmdlet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public NetworkClient NetworkClient
2727
{
2828
if (networkClient == null)
2929
{
30-
networkClient = new NetworkClient(Profile)
30+
networkClient = new NetworkClient(Profile.DefaultContext)
3131
{
3232
VerboseLogger = WriteVerboseWithTimestamp,
3333
ErrorLogger = WriteErrorWithTimestamp,

src/ResourceManager/Network/Commands.Network.Test/Commands.Network.Test.csproj

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -324,13 +324,9 @@
324324
<Project>{65c3a86a-716d-4e7d-ab67-1db00b3bf72d}</Project>
325325
<Name>Commands.Common.Storage</Name>
326326
</ProjectReference>
327-
<ProjectReference Include="..\..\..\Common\Commands.Common.Test\Commands.Common.Test.csproj">
328-
<Project>{3b48a77b-5956-4a62-9081-92ba04b02b27}</Project>
329-
<Name>Commands.Common.Test</Name>
330-
</ProjectReference>
331-
<ProjectReference Include="..\..\..\Common\Commands.Common\Commands.Common.csproj">
332-
<Project>{5ee72c53-1720-4309-b54b-5fb79703195f}</Project>
333-
<Name>Commands.Common</Name>
327+
<ProjectReference Include="..\..\..\Common\Commands.ResourceManager.Common\Commands.ResourceManager.Common.csproj">
328+
<Project>{3819d8a7-c62c-4c47-8ddd-0332d9ce1252}</Project>
329+
<Name>Commands.ResourceManager.Common</Name>
334330
</ProjectReference>
335331
<ProjectReference Include="..\..\..\Common\Commands.ScenarioTests.Common\Commands.ScenarioTests.Common.csproj">
336332
<Project>{c1bda476-a5cc-4394-914d-48b0ec31a710}</Project>

src/ResourceManager/Network/Commands.Network.Test/ScenarioTests/ApplicationGatewayTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313
// ----------------------------------------------------------------------------------
1414

1515
using Microsoft.WindowsAzure.Commands.ScenarioTest;
16+
using Microsoft.WindowsAzure.Commands.Test.Utilities.Common;
1617
using Xunit;
1718

1819
namespace Commands.Network.Test.ScenarioTests
1920
{
20-
public class ApplicationGatewayTests
21+
public class ApplicationGatewayTests : RMTestBase
2122
{
2223
[Fact]
2324
[Trait(Category.AcceptanceType, Category.CheckIn)]

src/ResourceManager/Network/Commands.Network.Test/ScenarioTests/LoadBalancerTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
namespace Commands.Network.Test.ScenarioTests
1919
{
20-
public class LoadBalancerTests
20+
public class LoadBalancerTests : Microsoft.WindowsAzure.Commands.Test.Utilities.Common.RMTestBase
2121
{
2222
[Fact]
2323
[Trait(Category.AcceptanceType, Category.CheckIn)]

src/ResourceManager/Network/Commands.Network.Test/ScenarioTests/LocalNetworkGatewayTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
namespace Commands.Network.Test.ScenarioTests
1919
{
20-
public class LocalNetworkGatewayTests
20+
public class LocalNetworkGatewayTests : Microsoft.WindowsAzure.Commands.Test.Utilities.Common.RMTestBase
2121
{
2222
[Fact]
2323
[Trait(Category.AcceptanceType, Category.CheckIn)]

src/ResourceManager/Network/Commands.Network.Test/ScenarioTests/NetworkInterfaceTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
namespace Commands.Network.Test.ScenarioTests
1919
{
20-
public class NetworkInterfaceTests
20+
public class NetworkInterfaceTests : Microsoft.WindowsAzure.Commands.Test.Utilities.Common.RMTestBase
2121
{
2222
[Fact]
2323
[Trait(Category.AcceptanceType, Category.CheckIn)]

src/ResourceManager/Network/Commands.Network.Test/ScenarioTests/NetworkSecurityGroupTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
namespace Commands.Network.Test.ScenarioTests
1919
{
20-
public class NetworkSecurityGroupTests
20+
public class NetworkSecurityGroupTests : Microsoft.WindowsAzure.Commands.Test.Utilities.Common.RMTestBase
2121
{
2222
[Fact]
2323
[Trait(Category.AcceptanceType, Category.CheckIn)]

src/ResourceManager/Network/Commands.Network.Test/ScenarioTests/PublicIpAddressTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
namespace Commands.Network.Test.ScenarioTests
1919
{
20-
public class PublicIpAddressTests
20+
public class PublicIpAddressTests : Microsoft.WindowsAzure.Commands.Test.Utilities.Common.RMTestBase
2121
{
2222
[Fact]
2323
[Trait(Category.AcceptanceType, Category.CheckIn)]

src/ResourceManager/Network/Commands.Network.Test/ScenarioTests/RouteTableTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
namespace Commands.Network.Test.ScenarioTests
1919
{
20-
public class RouteTableTests
20+
public class RouteTableTests : Microsoft.WindowsAzure.Commands.Test.Utilities.Common.RMTestBase
2121
{
2222
[Fact]
2323
[Trait(Category.AcceptanceType, Category.CheckIn)]

src/ResourceManager/Network/Commands.Network.Test/ScenarioTests/TestDnsAvailabilityTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
namespace Commands.Network.Test.ScenarioTests
1919
{
20-
public class TestDnsAvailabilityTest
20+
public class TestDnsAvailabilityTest : Microsoft.WindowsAzure.Commands.Test.Utilities.Common.RMTestBase
2121
{
2222
[Fact]
2323
[Trait(Category.AcceptanceType, Category.CheckIn)]

src/ResourceManager/Network/Commands.Network.Test/ScenarioTests/VirtualNetworkGatewayConnectionTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
namespace Commands.Network.Test.ScenarioTests
1919
{
20-
public class VirtualNetworkGatewayConnectionTests
20+
public class VirtualNetworkGatewayConnectionTests : Microsoft.WindowsAzure.Commands.Test.Utilities.Common.RMTestBase
2121
{
2222
[Fact]
2323
[Trait(Category.AcceptanceType, Category.CheckIn)]

src/ResourceManager/Network/Commands.Network.Test/ScenarioTests/VirtualNetworkGatewayTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
namespace Commands.Network.Test.ScenarioTests
1919
{
20-
public class VirtualNetworkGatewayTests
20+
public class VirtualNetworkGatewayTests : Microsoft.WindowsAzure.Commands.Test.Utilities.Common.RMTestBase
2121
{
2222
[Fact]
2323
[Trait(Category.AcceptanceType, Category.CheckIn)]

src/ResourceManager/Network/Commands.Network.Test/ScenarioTests/VirtualNetworkTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
namespace Commands.Network.Test.ScenarioTests
1919
{
20-
public class VirtualNetworkTests
20+
public class VirtualNetworkTests : Microsoft.WindowsAzure.Commands.Test.Utilities.Common.RMTestBase
2121
{
2222
[Fact]
2323
[Trait(Category.AcceptanceType, Category.CheckIn)]

src/ResourceManager/Network/Commands.Network/ApplicationGateway/BackendAddressPool/AddAzureApplicationGatewayBackendAddressPoolCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ public class AddAzureApplicationGatewayBackendAddressPoolCommand : AzureApplicat
2929
HelpMessage = "The applicationGateway")]
3030
public PSApplicationGateway ApplicationGateway { get; set; }
3131

32-
public override void ExecuteCmdlet()
32+
protected override void ProcessRecord()
3333
{
34-
base.ExecuteCmdlet();
34+
base.ProcessRecord();
3535

3636
var backendAddressPool = this.ApplicationGateway.BackendAddressPools.SingleOrDefault
3737
(resource => string.Equals(resource.Name, this.Name, System.StringComparison.CurrentCultureIgnoreCase));

src/ResourceManager/Network/Commands.Network/ApplicationGateway/BackendAddressPool/GetAzureApplicationGatewayBackendAddressPoolCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ public class GetAzureApplicationGatewayBackendAddressPoolCommand : NetworkBaseCm
3535
HelpMessage = "The applicationGateway")]
3636
public PSApplicationGateway ApplicationGateway { get; set; }
3737

38-
public override void ExecuteCmdlet()
38+
protected override void ProcessRecord()
3939
{
40-
base.ExecuteCmdlet();
40+
base.ProcessRecord();
4141

4242
if (!string.IsNullOrEmpty(this.Name))
4343
{

src/ResourceManager/Network/Commands.Network/ApplicationGateway/BackendAddressPool/NewAzureApplicationGatewayBackendAddressPoolCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ namespace Microsoft.Azure.Commands.Network
2121
[Cmdlet(VerbsCommon.New, "AzureApplicationGatewayBackendAddressPool"), OutputType(typeof(PSApplicationGatewayBackendAddressPool))]
2222
public class NewAzureApplicationGatewayBackendAddressPoolCommand : AzureApplicationGatewayBackendAddressPoolBase
2323
{
24-
public override void ExecuteCmdlet()
24+
protected override void ProcessRecord()
2525
{
26-
base.ExecuteCmdlet();
26+
base.ProcessRecord();
2727
WriteObject(base.NewObject());
2828
}
2929
}

src/ResourceManager/Network/Commands.Network/ApplicationGateway/BackendAddressPool/RemoveAzureApplicationGatewayBackendAddressPoolCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ public class RemoveAzureApplicationGatewayBackendAddressPoolCommand : NetworkBas
3333
HelpMessage = "The applicationGateway")]
3434
public PSApplicationGateway ApplicationGateway { get; set; }
3535

36-
public override void ExecuteCmdlet()
36+
protected override void ProcessRecord()
3737
{
38-
base.ExecuteCmdlet();
38+
base.ProcessRecord();
3939

4040
var backendAddressPool = this.ApplicationGateway.BackendAddressPools.SingleOrDefault
4141
(resource => string.Equals(resource.Name, this.Name, System.StringComparison.CurrentCultureIgnoreCase));

src/ResourceManager/Network/Commands.Network/ApplicationGateway/BackendAddressPool/SetAzureApplicationGatewayBackendAddressPoolCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ public class SetAzureApplicationGatewayBackendAddressPoolCommand : AzureApplicat
2828
ValueFromPipeline = true,
2929
HelpMessage = "The applicationGateway")]
3030
public PSApplicationGateway ApplicationGateway { get; set; }
31-
public override void ExecuteCmdlet()
31+
protected override void ProcessRecord()
3232
{
33-
base.ExecuteCmdlet();
33+
base.ProcessRecord();
3434

3535
var backendAddressPool = this.ApplicationGateway.BackendAddressPools.SingleOrDefault
3636
(resource => string.Equals(resource.Name, this.Name, System.StringComparison.CurrentCultureIgnoreCase));

src/ResourceManager/Network/Commands.Network/ApplicationGateway/BackendHttpSettings/AddAzureApplicationGatewayBackendHttpSettingsCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ public class AddAzureApplicationGatewayBackendHttpSettingsCommand : AzureApplica
2929
HelpMessage = "The applicationGateway")]
3030
public PSApplicationGateway ApplicationGateway { get; set; }
3131

32-
public override void ExecuteCmdlet()
32+
protected override void ProcessRecord()
3333
{
34-
base.ExecuteCmdlet();
34+
base.ProcessRecord();
3535

3636
var backendHttpSettings = this.ApplicationGateway.BackendHttpSettingsCollection.SingleOrDefault
3737
(resource => string.Equals(resource.Name, this.Name, System.StringComparison.CurrentCultureIgnoreCase));

src/ResourceManager/Network/Commands.Network/ApplicationGateway/BackendHttpSettings/GetAzureApplicationGatewayBackendHttpSettingsCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ public class GetAzureApplicationGatewayBackendHttpSettings : NetworkBaseCmdlet
3535
HelpMessage = "The applicationGateway")]
3636
public PSApplicationGateway ApplicationGateway { get; set; }
3737

38-
public override void ExecuteCmdlet()
38+
protected override void ProcessRecord()
3939
{
40-
base.ExecuteCmdlet();
40+
base.ProcessRecord();
4141

4242
if (!string.IsNullOrEmpty(this.Name))
4343
{

src/ResourceManager/Network/Commands.Network/ApplicationGateway/BackendHttpSettings/NewAzureApplicationGatewayBackendHttpSettingsCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ namespace Microsoft.Azure.Commands.Network
2121
[Cmdlet(VerbsCommon.New, "AzureApplicationGatewayBackendHttpSettings"), OutputType(typeof(PSApplicationGatewayBackendHttpSettings))]
2222
public class NewAzureApplicationGatewayBackendHttpSettingsCommand : AzureApplicationGatewayBackendHttpSettingsBase
2323
{
24-
public override void ExecuteCmdlet()
24+
protected override void ProcessRecord()
2525
{
26-
base.ExecuteCmdlet();
26+
base.ProcessRecord();
2727
WriteObject(base.NewObject());
2828
}
2929
}

src/ResourceManager/Network/Commands.Network/ApplicationGateway/BackendHttpSettings/RemoveAzureApplicationGatewayBackendHttpSettingsCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ public class RemoveAzureApplicationGatewayBackendHttpSettingsCommand : NetworkBa
3333
HelpMessage = "The applicationGateway")]
3434
public PSApplicationGateway ApplicationGateway { get; set; }
3535

36-
public override void ExecuteCmdlet()
36+
protected override void ProcessRecord()
3737
{
38-
base.ExecuteCmdlet();
38+
base.ProcessRecord();
3939

4040
var backendHttpSettings = this.ApplicationGateway.BackendHttpSettingsCollection.SingleOrDefault
4141
(resource => string.Equals(resource.Name, this.Name, System.StringComparison.CurrentCultureIgnoreCase));

src/ResourceManager/Network/Commands.Network/ApplicationGateway/BackendHttpSettings/SetAzureApplicationGatewayBackendHttpSettingsCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ public class SetAzureApplicationGatewayBackendHttpSettingsCommand : AzureApplica
2929
HelpMessage = "The applicationGateway")]
3030
public PSApplicationGateway ApplicationGateway { get; set; }
3131

32-
public override void ExecuteCmdlet()
32+
protected override void ProcessRecord()
3333
{
34-
base.ExecuteCmdlet();
34+
base.ProcessRecord();
3535

3636
var oldBackendHttpSettings = this.ApplicationGateway.BackendHttpSettingsCollection.SingleOrDefault
3737
(resource => string.Equals(resource.Name, this.Name, System.StringComparison.CurrentCultureIgnoreCase));

src/ResourceManager/Network/Commands.Network/ApplicationGateway/FrontendIPConfiguration/AddAzureApplicationGatewayFrontendIPConfigCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ public class AddAzureApplicationGatewayFrontendIPConfigCommand : AzureApplicatio
2828
HelpMessage = "The application gateway")]
2929
public PSApplicationGateway ApplicationGateway { get; set; }
3030

31-
public override void ExecuteCmdlet()
31+
protected override void ProcessRecord()
3232
{
33-
base.ExecuteCmdlet();
33+
base.ProcessRecord();
3434

3535
var frontendIPConfig = this.ApplicationGateway.FrontendIPConfigurations.SingleOrDefault
3636
(resource => string.Equals(resource.Name, this.Name, System.StringComparison.CurrentCultureIgnoreCase));

src/ResourceManager/Network/Commands.Network/ApplicationGateway/FrontendIPConfiguration/AzureApplicationGatewayFrontendIPConfigBase.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ public class AzureApplicationGatewayFrontendIPConfigBase : NetworkBaseCmdlet
5454
HelpMessage = "PublicIPAddress")]
5555
public PSPublicIpAddress PublicIPAddress { get; set; }
5656

57-
public override void ExecuteCmdlet()
57+
protected override void ProcessRecord()
5858
{
59-
base.ExecuteCmdlet();
59+
base.ProcessRecord();
6060

6161
if (string.Equals(ParameterSetName, Microsoft.Azure.Commands.Network.Properties.Resources.SetByResource))
6262
{

src/ResourceManager/Network/Commands.Network/ApplicationGateway/FrontendIPConfiguration/GetAzureApplicationGatewayFrontendIPConfigCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ public class GetAzureApplicationGatewayFrontendIPConfigCommand : NetworkBaseCmdl
3434
HelpMessage = "The applicationgateway")]
3535
public PSApplicationGateway ApplicationGateway { get; set; }
3636

37-
public override void ExecuteCmdlet()
37+
protected override void ProcessRecord()
3838
{
39-
base.ExecuteCmdlet();
39+
base.ProcessRecord();
4040

4141
if (!string.IsNullOrEmpty(this.Name))
4242
{

src/ResourceManager/Network/Commands.Network/ApplicationGateway/FrontendIPConfiguration/NewAzureApplicationGatewayFrontendIPConfigCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ namespace Microsoft.Azure.Commands.Network
2020
[Cmdlet(VerbsCommon.New, "AzureApplicationGatewayFrontendIPConfig"), OutputType(typeof(PSApplicationGatewayFrontendIPConfiguration))]
2121
public class NewAzureApplicationGatewayFrontendIPConfigCommand : AzureApplicationGatewayFrontendIPConfigBase
2222
{
23-
public override void ExecuteCmdlet()
23+
protected override void ProcessRecord()
2424
{
25-
base.ExecuteCmdlet();
25+
base.ProcessRecord();
2626
WriteObject(base.NewObject());
2727
}
2828
}

src/ResourceManager/Network/Commands.Network/ApplicationGateway/FrontendIPConfiguration/RemoveAzureApplicationGatewayFrontendIPConfigCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ public class RemoveAzureApplicationGatewayFrontendIPConfigCommand : NetworkBaseC
3333
HelpMessage = "The application gateway")]
3434
public PSApplicationGateway ApplicationGateway { get; set; }
3535

36-
public override void ExecuteCmdlet()
36+
protected override void ProcessRecord()
3737
{
38-
base.ExecuteCmdlet();
38+
base.ProcessRecord();
3939

4040
var frontendIPConfiguration = this.ApplicationGateway.FrontendIPConfigurations.SingleOrDefault
4141
(resource => string.Equals(resource.Name, this.Name, System.StringComparison.CurrentCultureIgnoreCase));

src/ResourceManager/Network/Commands.Network/ApplicationGateway/FrontendIPConfiguration/SetAzureApplicationGatewayFrontendIPConfigCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ public class SetAzureApplicationGatewayFrontendIPConfigCommand : AzureApplicatio
2828
HelpMessage = "The application gateway")]
2929
public PSApplicationGateway ApplicationGateway { get; set; }
3030

31-
public override void ExecuteCmdlet()
31+
protected override void ProcessRecord()
3232
{
33-
base.ExecuteCmdlet();
33+
base.ProcessRecord();
3434

3535
var oldFrontendIPConfig = this.ApplicationGateway.FrontendIPConfigurations.SingleOrDefault
3636
(resource => string.Equals(resource.Name, this.Name, System.StringComparison.CurrentCultureIgnoreCase));

src/ResourceManager/Network/Commands.Network/ApplicationGateway/FrontendPort/AddAzureApplicationGatewayFrontendPortCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ public class AddAzureApplicationGatewayFrontendPortCommand : AzureApplicationGat
2929
HelpMessage = "The applicationGateway")]
3030
public PSApplicationGateway ApplicationGateway { get; set; }
3131

32-
public override void ExecuteCmdlet()
32+
protected override void ProcessRecord()
3333
{
34-
base.ExecuteCmdlet();
34+
base.ProcessRecord();
3535

3636
var frontendPort = this.ApplicationGateway.FrontendPorts.SingleOrDefault(resource => string.Equals(resource.Name, this.Name, System.StringComparison.CurrentCultureIgnoreCase));
3737

src/ResourceManager/Network/Commands.Network/ApplicationGateway/FrontendPort/GetAzureApplicationGatewayFrontendPortCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ public class GetAzureApplicationGatewayFrontendPortCommand : NetworkBaseCmdlet
3535
HelpMessage = "The applicationGateway")]
3636
public PSApplicationGateway ApplicationGateway { get; set; }
3737

38-
public override void ExecuteCmdlet()
38+
protected override void ProcessRecord()
3939
{
40-
base.ExecuteCmdlet();
40+
base.ProcessRecord();
4141

4242
if (!string.IsNullOrEmpty(this.Name))
4343
{

src/ResourceManager/Network/Commands.Network/ApplicationGateway/FrontendPort/NewAzureApplicationGatewayFrontendPortCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ namespace Microsoft.Azure.Commands.Network
2121
[Cmdlet(VerbsCommon.New, "AzureApplicationGatewayFrontendPort"), OutputType(typeof(PSApplicationGatewayFrontendPort))]
2222
public class NewAzureApplicationGatewayFrontendPortCommand : AzureApplicationGatewayFrontendPortBase
2323
{
24-
public override void ExecuteCmdlet()
24+
protected override void ProcessRecord()
2525
{
26-
base.ExecuteCmdlet();
26+
base.ProcessRecord();
2727
WriteObject(base.NewObject());
2828
}
2929
}

src/ResourceManager/Network/Commands.Network/ApplicationGateway/FrontendPort/RemoveAzureApplicationGatewayFrontendPortCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ public class RemoveAzureApplicationGatewayFrontendPortCommand : NetworkBaseCmdle
3333
HelpMessage = "The applicationGateway")]
3434
public PSApplicationGateway ApplicationGateway { get; set; }
3535

36-
public override void ExecuteCmdlet()
36+
protected override void ProcessRecord()
3737
{
38-
base.ExecuteCmdlet();
38+
base.ProcessRecord();
3939

4040
var frontendPort = this.ApplicationGateway.FrontendPorts.SingleOrDefault
4141
(resource => string.Equals(resource.Name, this.Name, System.StringComparison.CurrentCultureIgnoreCase));

0 commit comments

Comments
 (0)