Skip to content

Commit

Permalink
<feat> : Add app.config service information.
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnshy committed Sep 7, 2024
1 parent d51a4af commit f929ea5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/GitLogService/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
<appSettings>
<add key="ServiceName" value="Git Log RESTful API Windows Service" />
<add key="ServiceDisplayName" value="Git Log RESTful API Windows Service" />
<add key="ServiceDescription" value="This is a git log RESTful API Service." />
<add key="ServiceDescription" value="This Windows service program is RESTful Service that converts Git Log to JSON for statistics." />
</appSettings>
</configuration>
8 changes: 6 additions & 2 deletions src/GitLogService/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,13 @@ public static void Main(string[] args)
service.RunAsLocalSystem();
service.StartAutomatically();

service.SetServiceName("GitLogService");
service.SetDisplayName("Git Log RESTful Windows Service");
service.SetServiceName("Git Log RESTful API Windows Service");
service.SetDisplayName("Git Log RESTful API Windows Service");
service.SetDescription("This Windows service program is RESTful Service that converts Git Log to JSON for statistics.");

//service.SetServiceName(ConfigurationManager.AppSettings["ServiceName"].ToString());
//service.SetDisplayName(ConfigurationManager.AppSettings["ServiceDisplayName"].ToString());
//service.SetDescription(ConfigurationManager.AppSettings["ServiceDescription"].ToString());
});
}
}
Expand Down

0 comments on commit f929ea5

Please sign in to comment.