Beispiel #1
0
 public static CachingProvider Instance()
 {
     if (_objProvider == null)
     {
         var _objProviderConfig = ProviderConfiguration.GetProviderConfiguration("caching");
         var _objProviderInfo   = (ProviderBase)_objProviderConfig.Providers[_objProviderConfig.DefaultProvider];
         _objProvider = (CachingProvider)DataProviderFactory.CreateDataProvider(_objProviderInfo);
     }
     return(_objProvider);
 }
Beispiel #2
0
 public static CachingProvider Instance()
 {
     if (_objProvider == null)
     {
         var _objProviderConfig = ProviderConfiguration.GetProviderConfiguration("caching");
         var _objProviderInfo = (ProviderBase)_objProviderConfig.Providers[_objProviderConfig.DefaultProvider];
         _objProvider = (CachingProvider)DataProviderFactory.CreateDataProvider(_objProviderInfo);
     }
     return _objProvider;
 }