Microsoft.Azure.Commands.Network.RemoveAzureApplicationGatewayHttpListenerCommand.ExecuteCmdlet C# (CSharp) Method

ExecuteCmdlet() public method

public ExecuteCmdlet ( ) : void
return void
        public override void ExecuteCmdlet()
        {
            base.ExecuteCmdlet();

            var httpListener = this.ApplicationGateway.HttpListeners.SingleOrDefault
                (resource => string.Equals(resource.Name, this.Name, System.StringComparison.CurrentCultureIgnoreCase));

            if (httpListener != null)
            {
                this.ApplicationGateway.HttpListeners.Remove(httpListener);
            }

            WriteObject(this.ApplicationGateway);
        }
    }
RemoveAzureApplicationGatewayHttpListenerCommand