示例#1
0
 private static void Main()
 {
     try
     {
         using (ServiceFabricContainerFactory.CreateContainerForStatelessService <ApprovalsService>())
         {
             Thread.Sleep(Timeout.Infinite);
         }
     }
     catch (Exception e)
     {
         ServiceEventSource.Current.ServiceHostInitializationFailed(e.ToString());
         throw;
     }
 }
 private static void Main()
 {
     try
     {
         using (ServiceFabricContainerFactory.CreateContainerForActor <JobsService>(3600, 60))
         {
             Thread.Sleep(Timeout.Infinite);
         }
     }
     catch (Exception e)
     {
         ActorEventSource.Current.ActorHostInitializationFailed(e.ToString());
         throw;
     }
 }