/// <summary>
 /// Initialize a new instance of the <see cref="NodeBuilder"/> class with a <see cref="IServiceProvider"/>.
 /// </summary>
 /// <param name="serviceProvider">The a mechanism for retrieving a service object; that is, an object that provides custom support to other objects.</param>
 protected NodeBuilder(IServiceProvider serviceProvider)
 {
     this.nodeCreationService = ServiceHelper.GetNodeCreationService(serviceProvider);
     this.errorLogService     = ServiceHelper.GetErrorService(serviceProvider);
     this.serviceProvider     = serviceProvider;
 }
예제 #2
0
 /// <summary>
 /// Gets a <see cref="FileConfigurationParameter"/> based on the applications configuration file.
 /// </summary>
 /// <param name="serviceProvider">The a mechanism for retrieving a service object; that is, an object that provides custom support to other objects.</param>
 /// <returns>A <see cref="FileConfigurationParameter"/> based on the applications configuration file.</returns>
 protected override IConfigurationParameter GetConfigurationParameter(IServiceProvider serviceProvider)
 {
     return(new FileConfigurationParameter(ServiceHelper.GetCurrentRootNode(serviceProvider).ConfigurationFile));
 }