Exemplo n.º 1
0
            public IRegistry Register <TContract, TImplementation>(ImplementationScope implementationScope)
                where TImplementation : TContract, new()
            {
                _registry[typeof(TContract)] = new Implementation(implementationScope, typeof(TImplementation));

                return(this);
            }
Exemplo n.º 2
0
 public Implementation(ImplementationScope implementationScope, Type type)
 {
     _implementationScope = implementationScope;
     _type = type;
 }