public override void ExecuteCmdlet()
{
base.ExecuteCmdlet();
if (!string.IsNullOrEmpty(this.Name))
{
var backendHttpSettings =
this.ApplicationGateway.BackendHttpSettingsCollection.First(
resource =>
string.Equals(resource.Name, this.Name, System.StringComparison.CurrentCultureIgnoreCase));
WriteObject(backendHttpSettings);
}
else
{
var backendHttpSettings = this.ApplicationGateway.BackendHttpSettingsCollection;
WriteObject(backendHttpSettings, true);
}
}
}