Пример #1
0
        /// <inheritdoc cref="CommandBase.PrepareArguments"/>
        protected override string[] PrepareArguments()
        {
            var arguments = new List <string>();

            AddOptions(arguments);
            arguments.AddConditionally(
                !InService.Equals(Default.InService, StringComparison.OrdinalIgnoreCase),
                InService);
            AddCommandAndArguments(arguments);
            return(arguments.ToArray());
        }
Пример #2
0
 private void AddService(IList <string> arguments)
 {
     arguments.AddConditionally(!InService.Equals(Default.InService, StringComparison.OrdinalIgnoreCase), InService);
 }