public DefaultViewService(DefaultViewServiceConfiguration config)
        {
            if (config == null)
            {
                throw new ArgumentNullException("config");
            }

            this.config = config;
        }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DefaultViewServiceRegistration"/> class.
 /// </summary>
 /// <param name="config">The configuration.</param>
 public DefaultViewServiceRegistration(DefaultViewServiceConfiguration config)
     : base(resolver => new DefaultViewService(config))
 {
 }
Exemple #3
0
 public DefaultViewServiceRegistration(DefaultViewServiceConfiguration config)
 {
     this.TypeFactory = (resolver) => new DefaultViewService(config);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DefaultViewService"/> class.
 /// </summary>
 /// <param name="config">The configuration.</param>
 /// <exception cref="System.ArgumentNullException">config</exception>
 public DefaultViewService(DefaultViewServiceConfiguration config)
 {
     if (config == null) throw new ArgumentNullException("config");
     
     this.config = config;
 }