public override void ExecuteCmdlet()
{
base.ExecuteCmdlet();
var frontendPort = this.ApplicationGateway.FrontendPorts.SingleOrDefault(resource => string.Equals(resource.Name, this.Name, System.StringComparison.CurrentCultureIgnoreCase));
if (frontendPort != null)
{
throw new ArgumentException("Frontend port with the specified name already exists");
}
frontendPort = base.NewObject();
this.ApplicationGateway.FrontendPorts.Add(frontendPort);
WriteObject(this.ApplicationGateway);
}
}