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