changed debug writelines to console writelines for desktop operation. tidied code. moved over to use PostAsync, to prevent app hanging when trying to post to DataCenter. changed api endpoint to windows datacenter desktop endpoint. --end Service1 changes. remove args from Start method --end Program changes added try catch to stop errors when the data center endpoint isnt up. --end DataCenterHelper changes. removed topshelf configuration stuff. --end ConfigureService changes.
18 lines
361 B
C#
18 lines
361 B
C#
using System;
|
|
using CardReaderService;
|
|
|
|
namespace CardReaderServiceHost
|
|
{
|
|
class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
Service1 service1 = new Service1();
|
|
service1.Start();
|
|
Console.WriteLine("Service Running...");
|
|
Console.ReadLine();
|
|
service1.Stop();
|
|
}
|
|
}
|
|
}
|