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