x.SetServiceName(EndpointId);
x.SetDescription("NServiceBus Message Endpoint Host Service");
x.SetServiceCommandLine(arguments.CustomArguments.AsCommandLine());
I also took the liberty of enhancing the args support as that last
line shows - added a "CustomArguments" which represents a collection
of IArgument instances which do not map to those core parameters
understood by TopShelf - install, uninstall, service, etc... The
"AsCommandLine" extension method is basically a way to convert an
IEnumerable<IArgument> into a properly formatted command line string
that in this case is then being appended to the ImagePath when
installing the service.
Let me know if you have any questions or comments - thanks,
Matt
Thanks for all the hard work on TopShelf - it's been a pleasure to work with!
Matt
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com
To unsubscribe from this group, send email to masstransit-dis...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/masstransit-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---