An open API service indexing awesome lists of open source software.

https://github.com/magnusthor/xsockets.windows.service

An example / template for setting up a Windows Service for XSockets.NET
https://github.com/magnusthor/xsockets.windows.service

Last synced: 7 months ago
JSON representation

An example / template for setting up a Windows Service for XSockets.NET

Awesome Lists containing this project

README

          

XSockets.Windows.Service
========================

# Info

This is an simple example that shows how to run XSockets.NET as Windows Service.

After successfull build Install the service by using the InstalUtil.exe, open command prompt (development console) in admin mode

Register (install) the service:

InstallUtil.exe XSockets.Windows.Service.exe

Unregister (Uninstall) the service

InstallUtil.exe XSockets.Windows.Service.exe /u

# Note

Do you have dependencies on external assemblies in your "controllers"?
Make sure to add them to the root of the service location.

To change configuration settings such as endpoint and allowed origins (location of your XSockets Service).
Apply your changes to the app.config ("XSockets.Windows.Service.Configuration")

The example configuration is defined to answer on the following url and origins;

Url: ws://127.0.0.1:4506"
Origins: http://*,https://*

As we included the XSockets.Extensibility.Handlers plugin you will be able
to use the "Generic" Controller (Just remove that assembly from the references to disable that functionallity.)

================================================

Kind regards
Team XSockets.NET