How can XSockets Version 5 be run as a service

33 views
Skip to first unread message

Ben Levy

unread,
Oct 7, 2015, 11:15:39 AM10/7/15
to XSockets.NET Developer forum
I have been testing XSockets for a couple of years and have been using the Service provided by a Chocolaty install.  I would like to upgrade to Version 5 but I can't seem to find a way to create a windows service that allows for XSockets components.

Is there anything out there?

Ben Levy

Ulf Björklund

unread,
Oct 7, 2015, 12:45:50 PM10/7/15
to XSockets.NET Developer forum
Hi Ben

Altough the Chocolatey package worked just fine we decided to recomend another way that provides better control.
TopShelf!

I will add a guide to the official documentation (it was on the todo list anyway) and then update this post so that you take a look.
Give me a few hours.

Regards
Uffe

Ulf Björklund

unread,
Oct 7, 2015, 1:32:14 PM10/7/15
to XSockets.NET Developer forum
Added the Service section to the new docs.


If you start using v5, do note that you will need a new license file (of you do not use the developer license of v5).

Regards
Uffe

Ben Levy

unread,
Oct 7, 2015, 3:40:28 PM10/7/15
to XSockets.NET Developer forum
Thanks Uffe,

That was extremely simple and quick.  I have a customized controller up and running.

I am having problems doing a custom configuration however.  I have take then following out of you example but it isn't being called or configured.

using XSockets.Core.Configuration;

namespace XSocketService.Configurations

{

  class apexConfiguration : ConfigurationSetting

  {

   /// <summary>

   /// Sample where we setup the server to run on localhost port 4506.

   /// We can of course replace the IP with host name for example mydomain.com:4506

   /// </Configuration>

   public apexConfiguration() : base("ws://127.0.0.1:9091") { }

  }

}

Ulf Björklund

unread,
Oct 7, 2015, 3:52:24 PM10/7/15
to XSockets.NET Developer forum
Hi Ben

Make the class public.
The XSockets.NET plugin framework will only pick up public classes.

Then it should work just fine, let me know otherwise.

Regards
Uffe
Reply all
Reply to author
Forward
0 new messages