Ejemplo n.º 1
0
         protected override void OnStart(string[] args)
         {
             try
             {
                 ShopAPIAccess.WriteToFile("Join8 POS Service started.");
                 try
                 {
                     SignalR = WebApp.Start(ConfigurationManager.AppSettings["ShopHubURL"].ToString());
                     ShopAPIAccess.WriteToFile("Hub Server Stated");
                 }
                 catch (Exception ex)
                 {
                     ShopAPIAccess.WriteToFile("Error OnStart Shop Signalr Hub " + ex.Message + " ST=" + ex.StackTrace);
                 }
 
                 //string reportTime = await DayEndAutomation();
                 ScheduleService("23:00");
             }
             catch (Exception ex)
             {
                 ShopAPIAccess.WriteToFile("Error OnStart " + ex.StackTrace);
             }
Ejemplo n.º 2
0
 public override Task OnConnected()
 {
     ShopAPIAccess.WriteToFile("connection ID= " + Context.ConnectionId);
     return base.OnConnected();
 }