/// <summary> /// Initializes a new instance of the <see cref="ServiceDescriptor"/> class. /// </summary> /// <param name="serviceType">The type representing the service.</param> public ServiceDescriptor(Type serviceType) { this.ServiceType = serviceType; this.dependencies = ForDependenciesOf(serviceType).ToArray(); this.Title = TypeMeta.NicifyCompoundName(this.ServiceType.Name, unwantedSuffix: "_Service"); this.TitleWithNamespace = TypeMeta.NicifyNamespaceQualifiedName(this.ServiceType.Namespace, this.Title); }
private static string NicifyInstallerTitle(Type installerType) { return(TypeMeta.NicifyCompoundName(installerType.Name, unwantedSuffix: "_Installer")); }