private async Task InitAsync()
 {
     while ((m_svc = GraphEngineStatefulServiceRuntime.Instance) == null)
     {
         await Task.Delay(1000, m_cancel);
     }
     m_svc.RequestRestore += OnServiceFabricRequestRestore;
 }
Esempio n. 2
0
 //  Passive Singleton
 private GraphEngineService(StatefulServiceContext context)
     : base(context)
 {
     GraphEngineStatefulServiceRuntime.Initialize(this);
 }