Skip to content

Commit

Permalink
ServiceInstaller: add DelayedAutoStart property for NET_4_0
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidS committed Dec 11, 2012
1 parent c99f71c commit d0ab8de
Showing 1 changed file with 18 additions and 1 deletion.
Expand Up @@ -49,10 +49,27 @@ public ServiceInstaller ()
private string service_name;
private string[] services_depended_on;
private ServiceStartMode start_type;

#if NET_2_0
private string description;
#endif
#if NET_4_0
private bool delayedAutoStart;
#endif

#if NET_4_0
[DefaultValue(false)]
[ServiceProcessDescription("Indicates that the service's start should be delayed after other automatically started services have started.")]
public bool DelayedAutoStart {
get {
return delayedAutoStart;
}
set {
delayedAutoStart = value;
}
}
#endif

#if NET_2_0
[ComVisible (false)]
[DefaultValue ("")]
[ServiceProcessDescription ("Indicates the service's description (a brief comment that explains the purpose of the service). ")]
Expand Down

0 comments on commit d0ab8de

Please sign in to comment.