Ejemplo n.º 1
0
 /// <summary>
 /// Initializes the class with the given <paramref name="container"/> instance.
 /// </summary>
 /// <param name="container">The target service container.</param>
 /// <param name="creator">The <see cref="ICreateInstance"/> instance responsible for instantiating service types.</param>
 /// <param name="preProcessor">The <see cref="IPreProcessor"/> that will allow users to intercept a given service request.</param>
 /// <param name="postProcessor">The <see cref="IPostProcessor"/> instance that will handle the results of a given service request.</param>
 public DefaultGetServiceBehavior(IServiceContainer container, ICreateInstance creator, IPreProcessor preProcessor, IPostProcessor postProcessor)
 {
     _container = container;
     _creator = creator;
     _preProcessor = preProcessor;
     _postProcessor = postProcessor;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes the class with the given <paramref name="container"/> instance.
 /// </summary>
 /// <param name="container">The target service container.</param>
 public DefaultGetServiceBehavior(IServiceContainer container)
 {
     _container = container;
     _creator = new DefaultCreator();
     _preProcessor = new CompositePreProcessor(container.PreProcessors);
     _postProcessor = new CompositePostProcessor(container.PostProcessors);
 }
 /// <summary>
 /// Initializes the class with the given <paramref name="container"/> instance.
 /// </summary>
 /// <param name="container">The target service container.</param>
 /// <param name="creator">The <see cref="ICreateInstance"/> instance responsible for instantiating service types.</param>
 /// <param name="preProcessor">The <see cref="IPreProcessor"/> that will allow users to intercept a given service request.</param>
 /// <param name="postProcessor">The <see cref="IPostProcessor"/> instance that will handle the results of a given service request.</param>
 public DefaultGetServiceBehavior(IServiceContainer container, ICreateInstance creator, IPreProcessor preProcessor, IPostProcessor postProcessor)
 {
     _container     = container;
     _creator       = creator;
     _preProcessor  = preProcessor;
     _postProcessor = postProcessor;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Initializes the class with the given <paramref name="container"/> instance.
 /// </summary>
 /// <param name="container">The target service container.</param>
 public DefaultGetServiceBehavior(IServiceContainer container)
 {
     _container     = container;
     _creator       = new DefaultCreator();
     _preProcessor  = new CompositePreProcessor(container.PreProcessors);
     _postProcessor = new CompositePostProcessor(container.PostProcessors);
 }
 public PricePresentationModelBuilder(ICreateInstance<PricePresentationModel> pricePresentationModel, ICollectViewBuilders collectViewBuildersCollector, HeaderViewModelBuilder headerViewModelBuilder, FooterViewModelBuilder footerViewModelBuilder)
 {
     _pricePresentationModel = pricePresentationModel;
     _collectViewBuilders = collectViewBuildersCollector;
     _headerViewModelBuilder = headerViewModelBuilder;
     _footerViewModelBuilder = footerViewModelBuilder;
 }