dasMulli / dotnet-win32-service

Helper classes to set up and run as windows services directly on .net core. A ServiceBase alternative.
MIT License
451 stars 57 forks source link

Extract parameters for CreateService() to an object with builder. #20

Closed dasMulli closed 7 years ago

dasMulli commented 7 years ago

Create takes way too many arguments, some are also defaulted anyway. => Extract a ServiceConfiguration object/struct that contains all necessary configuration. Create a ServiceConfigurationBuilder to fluently define a configuration.