internal static void Verify(this IConstructorVerificationBehavior behavior, ConstructorInfo constructor)
 {
     foreach (var parameter in constructor.GetParameters())
     {
         behavior.Verify(parameter);
     }
 }
 public ConventionConstructorVerificationBehavior(
     IConstructorVerificationBehavior decorated,
     IParameterConvention convention)
 {
     this.decorated  = decorated;
     this.convention = convention;
 }
Example #3
0
 /// <summary>Initializes a new instance of the <see cref="ContainerOptions"/> class.</summary>
 public ContainerOptions()
 {
     this.resolutionBehavior   = new DefaultConstructorResolutionBehavior();
     this.verificationBehavior = new DefaultConstructorVerificationBehavior();
     this.injectionBehavior    = new DefaultConstructorInjectionBehavior(() => this.Container);
     this.propertyBehavior     = new DefaultPropertySelectionBehavior();
     this.lifestyleBehavior    = new TransientLifestyleSelectionBehavior();
 }
 public OptionalArgumentsVerificationBehavior(IConstructorVerificationBehavior original)
 {
     this.original = original;
 }
 public AutomaticParameterizedFactoriesHelper(ContainerOptions options)
 {
     this.container = options.Container;
     this.originalVerificationBehavior = options.ConstructorVerificationBehavior;
     this.originalInjectionBehavior    = options.ConstructorInjectionBehavior;
 }