private static string NicifyNamespaceQualifiedInstallerTitle(Type installerType)
 {
     return(TypeMeta.NicifyNamespaceQualifiedName(
                installerType.Namespace,
                NicifyInstallerTitle(installerType)
                ));
 }
Ejemplo n.º 2
0
        /// <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);
        }