topshelf Questions

3

Solved

I have a service with multiple instances with different parameters for each instance, at the moment I'm setting these parameters manually (in another code to be exact) to Image Path of the service ...
Quadrivalent asked 1/10, 2015 at 16:45

2

Solved

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 ...
Megrims asked 3/7, 2017 at 8:24

2

I'm using Topshelf to host a Windows Service written in C# and I now want to write some integration tests. My initialisation code is held in a launcher class like the following: public class Launc...

2

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: ...
Abram asked 25/10, 2013 at 12:17

1

Solved

I have a TopShelf service that uses async code to connect to web services and other application servers. If it's unable to initialize its connections on startup, the service should log some errors...
Filemon asked 23/9, 2016 at 9:8

2

I have a TopShelf (3.1.3) service that hangs in a 'Stopping' state when an exception is raised. As a result none of the service recovery steps get invoked, and uninstalling the service only succeed...
Staub asked 16/9, 2014 at 21:23

1

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 ...
Hellhole asked 28/4, 2016 at 21:43

3

I am using command line arguments to pass some configuration to the windows service (it will be few instances with different command lines). My code looks like this: HostFactory.Run(x => { x...
Longoria asked 6/3, 2013 at 11:11

1

Solved

Any clue how to use Topshelf.Logging properly? Do I have to pass NLogLogWriter to the constructor of the service class? And how to enable output to console as well? class Program { #region Pro...
Guanabana asked 3/3, 2016 at 13:8

1

Solved

Using Visual Studio 2015. Created a windows service project. I'm trying to use topshelf, but can't seem to debug. Output debug / window says: Topshelf v3.3.154.0, .NET Framework v4.0.30319.42000 ...
Codify asked 17/2, 2016 at 21:46

1

Solved

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 fold...
Kalie asked 29/1, 2016 at 23:27

6

Solved

I have a topshelf windows service where I want to do some checking (i.e. if an xml file exists) and if the check fails I need the windows service to stop. So I tried doing the check in the Start()...
Hunley asked 21/5, 2014 at 19:2

2

I am trying to create windows service using TopShelf. Everything works fine with one instance of the service. However, when I copy the whole service folder to a different location and then run the ...
Tabina asked 2/8, 2012 at 0:15

2

Something very strange started happening on our production servers a day or two ago regarding a WCF Service we run there: it seems that something started rate limiting the process in question's CPU...
Ponce asked 25/11, 2015 at 12:51

1

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<IJobFactory>(...
Grandeur asked 19/11, 2014 at 15:17

1

Solved

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 una...
Juni asked 14/7, 2015 at 21:9

1

This question has been asked elsewhere on SO, but there is no indication of how I get an instance of a HostControl as the post suggests. My TopShelf main program looks like this: public static vo...
Taillight asked 25/6, 2015 at 23:37

1

I'm trying to set up a simple logging configuration for my Windows service using Topshelf and Serilog (the Serilog.Extras.Topshelf package respectively). HostLogger.UseLogger(new SerilogHostLogge...
Monoploid asked 3/2, 2015 at 12:29

1

Solved

Is there a way to get the ServiceName and InstanceName given to a TopShelf service after a call to TopShelf.HostFactory.Run()? One option is to simply pull it directly from the command line args....
Newson asked 10/4, 2014 at 20:45

2

Solved

I recently discovered TopShelf. From everything I have read, it looks very cool. The only problem is that I have not been able to use it. I have to have missed something. Below is my code. using S...
Scuttle asked 15/9, 2014 at 16:42

2

Solved

Is there any way in topshelf to run multiple host in one executable? // Create hosts var h1 = HostFactory.New (...); var h2 = HostFactory.New (...) // Start hosts in one application Runner.Run ...
Expostulate asked 9/2, 2012 at 22:31

1

Solved

I am attempting to run multiple jobs with Quartz.NET and Topshelf using C#. HostFactory.Run(c => { c.ScheduleQuartzJobAsService(q => q.WithJob(() => JobBuilder.Create<TypeA>().Bu...
Bible asked 14/8, 2014 at 3:38

2

Solved

I've a need to use topshelf in the project I'm in and have a simple question I hope. Everything works just fine when I'm using HostFactory.Run, but I thought that it seemed more reasonable to use H...
Tret asked 22/3, 2013 at 10:24

1

Solved

I have written a TopShelf service / console app, which appears to be running as intended, except I would like it to run once on boot, then disable itself until the next boot/reboot. I was hoping t...
Nereid asked 30/4, 2014 at 14:39

2

Solved

Reading the documentation for Topshelf integrations here: https://github.com/dtinteractive/Topshelf.Integrations And it seems like it should be as simple as scheduling multiple quartz jobs within ...
Tosspot asked 22/1, 2014 at 21:46

© 2022 - 2024 — McMap. All rights reserved.