Пример #1
0
        protected override bool ValidateArguments()
        {
            if (string.IsNullOrEmpty(Pipe.Value()))
            {
                Pipe.Values.Add(PipeName.ComputeDefault());
            }

            return(true);
        }
Пример #2
0
        public static Task <ServerResponse> RunOnServer(
            string pipeName,
            IList <string> arguments,
            ServerPaths serverPaths,
            CancellationToken cancellationToken,
            string keepAlive = null,
            bool debug       = false)
        {
            if (string.IsNullOrEmpty(pipeName))
            {
                pipeName = PipeName.ComputeDefault(serverPaths.ClientDirectory);
            }

            return(RunOnServerCore(
                       arguments,
                       serverPaths,
                       pipeName: pipeName,
                       keepAlive: keepAlive,
                       timeoutOverride: null,
                       tryCreateServerFunc: TryCreateServerCore,
                       cancellationToken: cancellationToken,
                       debug: debug));
        }