Esempio n. 1
0
 private void InitApp(IApi api)
 {
     if (!App._isInitialized)
     {
         V_0 = App._mutex;
         V_1 = false;
         try
         {
             Monitor.Enter(V_0, ref V_1);
             if (!App._isInitialized)
             {
                 stackVariable7 = this._pageTypes;
                 V_2            = api.get_PageTypes().GetAllAsync().GetAwaiter();
                 stackVariable7.Init(V_2.GetResult());
                 stackVariable15 = this._postTypes;
                 V_3             = api.get_PostTypes().GetAllAsync().GetAwaiter();
                 stackVariable15.Init(V_3.GetResult());
                 stackVariable23 = this._siteTypes;
                 V_4             = api.get_SiteTypes().GetAllAsync().GetAwaiter();
                 stackVariable23.Init(V_4.GetResult());
                 V_5 = this._modules.GetEnumerator();
                 try
                 {
                     while (V_5.MoveNext())
                     {
                         V_5.get_Current().get_Instance().Init();
                     }
                 }
                 finally
                 {
                     if (V_5 != null)
                     {
                         V_5.Dispose();
                     }
                 }
                 App._isInitialized = true;
             }
         }
         finally
         {
             if (V_1)
             {
                 Monitor.Exit(V_0);
             }
         }
     }
     return;
 }