public void AddService(Type serviceType) { Responder.AddCommoneService(serviceType, () => ServiceRegistry.Get(serviceType)); if (serviceType.HasCustomAttributeOfType(out ServiceSubdomainAttribute attr)) { ServiceSubdomains.Add(attr); } }