Beispiel #1
0
        public void RunAsService()
        {
            this.host = this.builder.Build();
            var hostService = new GenericServiceHost(this.host);

            ServiceBase.Run(hostService);
        }
    public static void RunAsService(this IHost host)
    {
        var hostService = new GenericServiceHost(host);

        ServiceBase.Run(hostService);
    }