Beispiel #1
0
 protected virtual Task InitializeSingletonCache()
 {
     return(Task.Run(() =>
     {
         SetupLog?.Trace("Setup: Singleton Cache start");
         MvxSingletonCache.Initialize();
     }));
 }
        public static MvxSingletonCache Initialize()
        {
            if (Instance != null)
            {
                throw new MvxException("You should only initialize MvxBindingSingletonCache once");
            }

            var instance = new MvxSingletonCache();

            return(instance);
        }
Beispiel #3
0
 protected virtual void InitializeSingletonCache()
 {
     MvxSingletonCache.Initialize();
 }