Re: [topshelf-discuss] hooking into ServiceBase.RequestAdditionalTime()

312 views
Skip to first unread message

Chris Patterson

unread,
Aug 31, 2012, 9:40:15 PM8/31/12
to topshelf...@googlegroups.com
With 3.0, you can use the HostControl interface that is available for the WhenStarted() delegate (or optionally you can implement the ServiceControl interface on your service). It has the RequestAdditionalTime() method.

On Fri, Aug 31, 2012 at 6:40 AM, alex86 <alex.rot...@gmail.com> wrote:
Hello all,

Could not locate an answer to this. Using Topshelf as a standalone. Our masstransit service is heavy upfront and times out on startup (loads a gig into memory before it can start processing)  (without initialization it starts up just fine). When rolling one's own service, one can use ServiceBase.RequestAdditionalTime() to extend the timeout. Is there a way to tap into that from the Topshelf? (there is a way to do that thru registry but that setting is global and is not an option anyways)

Thank you for advice,
Alexander

Reply all
Reply to author
Forward
0 new messages