예제 #1
0
 public void Start()
 {
     //Connect
     try
     {
         log.Info("Starting Agbara Rest API..");
         Task.Factory.StartNew(() => AgbaAPIWcfHostingServer.Start());
         log.Info("Starting AgbaraML Processor..");
         Task.Factory.StartNew(() => AgbaMLServer.Start());
     }
     catch (Exception ex)
     {
         log.Fatal("The services existed with the following error...{0}", ex.InnerException);
     }
 }
예제 #2
0
 public static void Stop()
 {
     AgbaAPIWcfHostingServer.Stop();
 }