Questions tagged [topshelf]

Topshelf is a service hosting framework for building Windows services using .NET.

Topshelf is a cross-platform (Windows and Mono) service hosting framework for .NET. Provides a simple fluent API for service configuration.

Source code is available for download on github and documentation/examples are available on the Topshelf project site and Topshelf documentation.

336 questions
9
votes
2 answers

Topshelf vs sc.exe vs Windows Service project type

As in title I would like to ask what is difference between using these possibilities of hosting my code on Windows Service. As far as I can see, all three allow me to create exe which will be installed as a service.
user1121956
  • 1,485
  • 16
  • 27
8
votes
1 answer

Getting started with the stact framework

I have been looking through the Topshelf code, and notice that it is using an assembly called 'stact.dll'. There does not seem to be a lot of information around on this. It seems to be a library for building concurrent applications using actors and…
John Jeffery
  • 972
  • 5
  • 19
8
votes
2 answers

Can not see my service under services after installing with Topshelf

I am pretty sure the answer is so simple but here it is; I'm using TopShelf to install my service and I can succesfully install and run it from command line as MyExecutable.Daemon install MyExecutable.Daemon start This is fine but it has to be…
Bilsay
  • 185
  • 2
  • 10
7
votes
2 answers

RabbitMQ EventBasicConsumer not working

BACKGROUND INFO I have a queue (for emails) in RabbitMQ, and want to build a consumer for it. The queue is used by another .NET app for sending emails to customers. I wanted the emailing logic to sit outside of the .NET app, and also have the…
J86
  • 11,751
  • 29
  • 115
  • 194
7
votes
1 answer

Is it possible to run Orleans hosted within Windows Service

Please, point me out if there are any direct methods to run Orleans hosted within Windows Service. If there are no direct methods, then are there any indirect methods of doing that? Thank you in advance
Rauf
  • 293
  • 2
  • 13
7
votes
1 answer

What is the "correct" way to use Chocolatey to install a Windows service?

I'm looking for some guidance on how I should be packaging my TopShelf hosted Windows service for distribution via Chocolatey. Currently the .nuspec puts the .exe and all .dlls into the \tools folder, which means they end up installed to…
Josh Buedel
  • 1,765
  • 16
  • 39
7
votes
1 answer

Calling Shutdown Tasks in a NancyFX self host singleton

I'm currently trying to find a way of calling a task that needs to be called at shutdown of a singleton object created in TinyIOC inside a NancyFX self hosted application. As of yet, I've been unable to come up with an answer, and I'm also open to…
shawty
  • 5,447
  • 2
  • 29
  • 66
7
votes
1 answer

Topshelf needs to use Autofac's Quartz job factory

I'm trying to use TopShelf together with Quartz.net and Autofac. The code I have below works just fine. However, this line: cfg.UsingQuartzJobFactory(() => container.Resolve()); seems like the wrong way of doing things. Is there a…
user47589
7
votes
2 answers

CustomAction in Wix not executing

So I'm creating my first Wix project and I seem to be having a problem executing a custom action. I'm not sure that it's being included in the msi and I'm not quite sure what I'm doing wrong. The following is my Wix file:
Cole W
  • 14,393
  • 6
  • 46
  • 80
7
votes
2 answers

Topshelf timeout issue

We are using Topshelf to host a service. Before starting the service, we are making database call to load lot of data. Because of this, while starting the service, we are getting following error: Start Service failed with return code '[7]…
SharpCoder
  • 15,708
  • 34
  • 126
  • 225
6
votes
3 answers

Topshelf - handling loops

Generally with services, the task you want to complete is repeated, maybe in a loop or maybe a trigger or maybe something else. I'm using Topshelf to complete a repeated task for me, specifically I'm using the Shelf'ing functionality. The problem…
Mike
  • 2,375
  • 23
  • 34
6
votes
3 answers

How do I use Topshelf with a .NET Core 2.1 application?

I have an console application on .NET Core 2.1. I have used top-shelf to have it configure it as a windows service. Has anyone successfully ,installed a .NET Core console application as a windows services using top-shelf. Any documentation leading…
alangilbi
  • 267
  • 4
  • 14
6
votes
0 answers

Topshelf - Service did not start in a timely manner

Im trying to create a windows service using topshelf.I have managed to successfully create what i want and debug it.I have also managed to install the service using myservice.exe install But upon attempting to launch the service using the service…
techno
  • 5,373
  • 13
  • 65
  • 146
6
votes
6 answers

Topshelf window service giving Error 1053 when try to start the service

I have developed a windows service using Topshelf. it works fine locally. When i deployed to test and try to start the service, it is giving me the following error: Error 1053: The service did not respond to the start or control request in a timely…
Mukil Deepthi
  • 4,272
  • 9
  • 49
  • 107
6
votes
2 answers

Topshelf: install command does not return after successfully installing the service

NOTE: I'm not doing anything similar to Topshelf installer requires me to press enter twice - why? Service class (interesting parts): public class ServiceCore { public ServiceCore(ServiceRuntimeConfiguration serviceRuntimeConfiguration) { …
Sudhanshu Mishra
  • 5,747
  • 2
  • 52
  • 68
1
2
3
22 23