Пример #1
0
        public Composition <T> Execute <T>(string identifier, System.Web.Mvc.IValueProvider valueProvider)
        {
            // TODO: Locally cache describe if we ever want >1 call to Execute
            var describe = new RootBuilder();

            _compositionEvents.Subscribe(describe);

            var context = new CompositionContext()
            {
                Identifier = identifier,
                Values     = valueProvider,
                Builder    = describe,
            };

            return(new Composition <T>(context));
        }
 public FormFactoryValueProvider(System.Web.Mvc.IValueProvider valueProvider)
 {
     _valueProvider = valueProvider;
 }
Пример #3
0
 public MvcValueProvider(System.Web.Mvc.IValueProvider valueProvider)
 {
     this._valueProvider = valueProvider;
 }
 public UnvalidatedValueProviderWrapper(System.Web.Mvc.IValueProvider backingProvider)
 {
     _backingProvider = backingProvider;
 }
 public FormFactoryValueProvider(System.Web.Mvc.IValueProvider valueProvider)
 {
     _valueProvider = valueProvider;
 }
Пример #6
0
 public MvcValueProvider(System.Web.Mvc.IValueProvider valueProvider)
 {
     this._valueProvider = valueProvider;
 }