Ejemplo n.º 1
0
 public string FormatConfig(WindowServiceInfo serviceInfo)
 {
     if (serviceInfo == null)
     {
         return(string.Empty);
     }
     return(MyModelHelper.MakeIniStringExt(serviceInfo, lastSplit: Environment.NewLine));
 }
Ejemplo n.º 2
0
 public void LoadConfig()
 {
     //todo read from config
     ServiceInfo                     = new WindowServiceInfo();
     ServiceInfo.ServiceName         = "AnyWs-Foo";
     ServiceInfo.ServicePath         = "AnyWs.exe";
     ServiceInfo.ServiceFriendlyName = "000-AnyWs-Foo";
 }