public void RegisterServices(ServiceRegistry serviceRegistry) { ServiceRegistry = serviceRegistry; Responder.ClearCommonServices(); Responder.ClearAppServices(); ServiceRegistry.MappedTypes.Where(t => t.HasCustomAttributeOfType <ProxyAttribute>()).Each(t => AddService(t)); }
public void RegisterServices(ServiceRegistry serviceRegistry, bool requireApiKeyResover = false) { ServiceRegistry = serviceRegistry; Responder.ClearCommonServices(); Responder.ClearAppServices(); ServiceRegistry.MappedTypes.Where(t => t.HasCustomAttributeOfType <ProxyAttribute>()).Each(t => AddService(t)); SetApiKeyResolver(serviceRegistry, requireApiKeyResover ? ApiKeyResolver.Default : null); }