main
1using System.Collections;
2using System.Collections.Generic;
3
4namespace jive
5{
6 public class DefaultRegistry<T> : Registry<T>
7 {
8 readonly DependencyRegistry registry;
9
10 public DefaultRegistry(DependencyRegistry registry)
11 {
12 this.registry = registry;
13 }
14
15 public IEnumerable<T> all()
16 {
17 return registry.get_all<T>();
18 }
19
20 public IEnumerator<T> GetEnumerator()
21 {
22 return all().GetEnumerator();
23 }
24
25 IEnumerator IEnumerable.GetEnumerator()
26 {
27 return GetEnumerator();
28 }
29 }
30}