Ejemplo n.º 1
0
 public DefaultCmsContext(Func <Type, object> resolve, Func <string> findCategoryForCurrentContext, IFeatureValidator featureValidator, IEnumerable <ITheme> themes)
 {
     _resolve          = resolve;
     _featureValidator = featureValidator;
     _themes           = themes;
     _findCategoryForCurrentContext = findCategoryForCurrentContext;
 }
 public EnsureFeatureIsEnabled(IFubuRequest fubuRequest, IActionBehavior innerBehavior, ICurrentHttpRequest currentHttpRequest, IHandle404 handle404, IFeatureValidator featureValidator)
 {
     _fubuRequest        = fubuRequest;
     _innerBehavior      = innerBehavior;
     _currentHttpRequest = currentHttpRequest;
     _handle404          = handle404;
     _featureValidator   = featureValidator;
 }
 public static void AssociateValidator(this IMediaFeature feature, IFeatureValidator validator) =>
 AssociatedValidators.Add(feature, validator);
 public LoadFeaturesOnStartup(IFeatureValidator featureValidator)
 {
     _featureValidator = featureValidator;
 }
 public LoadFeaturesOnStartup(IFeatureValidator featureValidator)
 {
     _featureValidator = featureValidator;
 }