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