Beispiel #1
0
 public static AlphaApp MakeSureApp()
 {
     if (null == App)
     {
         //global::Xamarin.Forms.Forms.Init(this, bundle);
         ImageCircleRenderer.Init();
         OmegaFactory.MakeSureInit();
         App = AlphaFactory.MakeSureApp();
     }
     return(App);
 }
Beispiel #2
0
        void UpdateLastPublicActivity(Intent intent)
        {
            OmegaFactory.MakeSureInit();
            var Domain = AlphaFactory.MakeSureDomain() as OmegaDomain;

            try
            {
                Domain.ThreadContext.Value = this;
                Domain.BackgroundUpdateLastPublicActivityAsync().Wait();
            }
            finally
            {
                Domain.ThreadContext.Value = null;
            }
        }
        public void UpdateLastPublicActivity(Context context, Intent intent)
        {
            OmegaFactory.MakeSureInit();
            var Domain = AlphaFactory.MakeSureDomain() as OmegaDomain;

            try
            {
                Domain.ThreadContext.Value = context;
                Domain.AutoUpdateLastPublicActivityAsync().Wait();
            }
            finally
            {
                Domain.ThreadContext.Value = null;
            }
        }