コード例 #1
0
        public void Initialize(IStrategy <ISensor> strategy)
        {
            Ensure.ArgumentAssignableFrom(typeof(SpecSensorLifetimeStrategy), strategy, "strategy");

            this.strategy = (SpecSensorLifetimeStrategy)strategy;
            this.decoratedBootstrapper.Initialize(strategy);
        }
コード例 #2
0
        public TypedConstructorArgument(Type argumentType, object argumentValue, bool shouldInherit)
        {
            Ensure.ArgumentAssignableFrom(argumentType, argumentValue, "argumentValue");

            this.ArgumentType  = argumentType;
            this.ArgumentValue = argumentValue;
            this.ShouldInherit = shouldInherit;

            this.Name = argumentType.FullName;
        }