コード例 #1
0
ファイル: TCache.cs プロジェクト: wefasdfaew2/tngames
 public static void SetCacheLoaderErrorHandler(CacheLoaderErrorDelegate handler)
 {
     if (_cacheLoaderErrorDelegate != null)
     {
         throw new Exception("The CacheLoaderDelegate should only be set once within an app.");
     }
     if (handler != null)
     {
         _cacheLoaderErrorDelegate = handler;
     }
 }
コード例 #2
0
ファイル: NCache.cs プロジェクト: ddd-cqrs-es/must
        public static void SetCacheLoaderErrorHandler(CacheLoaderErrorDelegate handler)
        {
            if (cache_loader_error_delegate_ != null)
            {
                throw new Exception("The CacheLoaderDelegate should only be set once whitin an application");
            }

            if (handler != null)
            {
                cache_loader_error_delegate_ = handler;
            }
        }
コード例 #3
0
ファイル: NCache.cs プロジェクト: joethinh/nohros-must
        public static void SetCacheLoaderErrorHandler(CacheLoaderErrorDelegate handler) {
            if (cache_loader_error_delegate_ != null)
                throw new Exception("The CacheLoaderDelegate should only be set once whitin an application");

            if (handler != null)
                cache_loader_error_delegate_ = handler;
        }