Exemple #1
0
        /// <summary>
        /// Save the application and all it's configuration.
        /// </summary>
        public void Save()
        {
            this.configDomain.Save();
            IErrorLogService errorLogService = ServiceHelper.GetErrorService(serviceProvider);

            if (errorLogService.ConfigurationErrorCount > 0)
            {
                return;
            }
            OnSaved(new HierarchySavedEventArgs(this));
        }
 /// <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;
 }