public ServiceManager(IServiceOnsetConfig config) { this.Services = config.StartInfos .Select(s => ServiceFactory.Instance.Create(s)) .ToList(); AppHelper.Log.Info("{0} service(s) initialized: {1}", this.Services.Count, string.Join(", ", this.Services.Select(s => s.StartInfo.Name + "(" + s.StartInfo.RunMode.ToString() + ")").ToArray())); }
public ServiceManager(IServiceOnsetConfig config) { this.InnerServices = config.StartInfos .Select(s => ServiceFactory.Instance.Create(s)) .ToList(); AppHelper.Log.Info("{0} service(s) initialized: {1}", this.InnerServices.Count, string.Join(", ", this.InnerServices.Select(s => s.StartInfo.Name + "(" + s.StartInfo.RunMode.ToString() + ")").ToArray())); }