Пример #1
0
            public bool AppliesTo(Type implementationType, InitializationContext context)
            {
                var typeHierarchy = Helpers.GetTypeHierarchyFor(implementationType);

                return typeHierarchy.Contains(this.serviceType);
            }
Пример #2
0
 public Action<T> CreateAction<T>(InitializationContext context)
 {
     return Helpers.CreateAction<T>(this.instanceInitializer);
 }
 private bool IsDecorator(Type openGenericServiceType, Type implemenationType)
 {
     var ctor = this.SelectImplementationTypeConstructorOrNull(openGenericServiceType, implemenationType);
     return ctor != null && Helpers.IsDecorator(openGenericServiceType, ctor);
 }