예제 #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);
 }
예제 #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;
            }
        }
예제 #3
0
        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;
            }
        }