コード例 #1
0
 /// <summary>
 /// Gets the filter info finder.
 /// </summary>
 /// <returns></returns>
 protected virtual IFilterInfoFinder GetFilterInfoFinder()
 {
     if (_filterInfoFinder == null)
     {
         lock (_lock)
             if (_filterInfoFinder == null)
             {
                 try { _filterInfoFinder = ServiceLocator.Resolve <IFilterInfoFinder>(); }
                 catch (ServiceLocatorResolutionException) { _filterInfoFinder = new ServiceLocatorFilterInfoFinder(ServiceLocator); }
             }
     }
     return(_filterInfoFinder);
 }
コード例 #2
0
 /// <summary>
 /// Gets the filter info finder.
 /// </summary>
 /// <returns></returns>
 protected virtual IFilterInfoFinder GetFilterInfoFinder()
 {
     if (_filterInfoFinder == null)
         lock (_lock)
             if (_filterInfoFinder == null)
                 try { _filterInfoFinder = ServiceLocator.Resolve<IFilterInfoFinder>(); }
                 catch (ServiceLocatorResolutionException) { _filterInfoFinder = new ServiceLocatorFilterInfoFinder(ServiceLocator); }
     return _filterInfoFinder;
 }