コード例 #1
0
        private int Execute()
        {
            if (string.IsNullOrWhiteSpace(ApplicationPath.Value))
            {
                throw new InvalidOperationException($"Invalid value for parameter '{nameof(ApplicationPath)}'. Value supplied: '{ApplicationPath.Value}'");
            }

            Server.Startup.ApplicationAssembly = ApplicationPath.Value;
            Server.Program.BuildWebHost(RemainingArguments.ToArray()).Run();
            return(0);
        }
コード例 #2
0
 private int Execute()
 {
     Server.Program.BuildWebHost(RemainingArguments.ToArray()).Run();
     return(0);
 }