Esempio n. 1
0
 public void RegisterServices(ServiceRegistry serviceRegistry)
 {
     ServiceRegistry = serviceRegistry;
     Responder.ClearCommonServices();
     Responder.ClearAppServices();
     ServiceRegistry.MappedTypes.Where(t => t.HasCustomAttributeOfType <ProxyAttribute>()).Each(t => AddService(t));
 }
Esempio n. 2
0
 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);
 }