Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 60 lines (49 sloc) 2.131 kb
9cf0cf0e »
2009-02-17 renaming
1 using System.Text;
2 using CommandLine;
3
4 namespace Rhino.ServiceBus.Host
5 {
6 public class ExecutingOptions
7 {
6d8eeeae »
2011-12-07 Fixing nullable issue.
8 [Argument(ArgumentType.AtMostOnce, HelpText = "Choose an action", ShortName = "action")] public Action Action;
9cf0cf0e »
2009-02-17 renaming
9
6d8eeeae »
2011-12-07 Fixing nullable issue.
10 [Argument(ArgumentType.Required, HelpText = "Assembly to execute", ShortName = "asm")] public string Assembly;
9cf0cf0e »
2009-02-17 renaming
11
12 [Argument(ArgumentType.AtMostOnce, HelpText = "Configuration file", ShortName = "config")] public string ConfigFile;
13
aab7fd1e »
2011-11-30 Auto detect the service name
14 [Argument(ArgumentType.AtMostOnce, HelpText = "Service name", ShortName = "name")] public string Name;
9cf0cf0e »
2009-02-17 renaming
15
17b74a4a »
2009-02-19 Adding deployment action
16 [Argument(ArgumentType.AtMostOnce, LongName = "Account")] public string Account;
8255b18c »
2011-09-12 Added ability to set custom account when installing windows service
17 [Argument(ArgumentType.AtMostOnce, HelpText="Password for account used when installing service")]public string Password;
17b74a4a »
2009-02-19 Adding deployment action
18
19 [Argument(ArgumentType.AtMostOnce, LongName = "Host")] public string Host;
20 [Argument(ArgumentType.AtMostOnce, LongName = "BootStrapper")] public string BootStrapper;
21
9cf0cf0e »
2009-02-17 renaming
22 public override string ToString()
23 {
24 var sb = new StringBuilder();
25 sb.Append(" /Action:").Append(Action)
ef2bf2b2 »
2009-03-15 patch from Corey Kaylor - better support for installing on machines w…
26 .Append(" /Name:\"")
27 .Append(Name)
28 .Append("\"");
9cf0cf0e »
2009-02-17 renaming
29
17b74a4a »
2009-02-19 Adding deployment action
30 if (string.IsNullOrEmpty(Host)==false)
31 {
32 sb.Append(" \"/Host:")
33 .Append(Host)
34 .Append("\"");
35 }
36
37 if (string.IsNullOrEmpty(BootStrapper) == false)
38 {
39 sb.Append(" \"/BootStrapper:")
40 .Append(BootStrapper)
41 .Append("\"");
42 }
43
9cf0cf0e »
2009-02-17 renaming
44 if (string.IsNullOrEmpty(Assembly) == false)
45 {
ef2bf2b2 »
2009-03-15 patch from Corey Kaylor - better support for installing on machines w…
46 sb.Append(" /Assembly:\"")
47 .Append(Assembly)
48 .Append("\"");
9cf0cf0e »
2009-02-17 renaming
49 }
50 if (string.IsNullOrEmpty(ConfigFile) == false)
51 {
ef2bf2b2 »
2009-03-15 patch from Corey Kaylor - better support for installing on machines w…
52 sb.Append(" /ConfigFile:\"")
53 .Append(ConfigFile)
54 .Append("\"");
9cf0cf0e »
2009-02-17 renaming
55 }
56 return sb.ToString();
57 }
58 }
59 }
Something went wrong with that request. Please try again.