Exemplo n.º 1
0
        public ServiceBuilder ForTypesDerivedFrom(Type type)
        {
            ServiceBuilder builder = CreateServiceBuilder(x => type.IsAssignableFrom(x));

            builders.Add(builder);
            return(builder);
        }
Exemplo n.º 2
0
        public ServiceBuilder ForTypesMatching(Predicate <Type> typeFilter)
        {
            ServiceBuilder builder = CreateServiceBuilder(typeFilter);

            builders.Add(builder);
            return(builder);
        }
Exemplo n.º 3
0
        public ServiceBuilder ForType(Type type)
        {
            ServiceBuilder builder = CreateServiceBuilder(x => x == type);

            builders.Add(builder);
            return(builder);
        }