Example #1
0
 /// <summary>
 /// Initializes a new fully specified instance of the <see cref="InstanceInfo"/> class.
 /// </summary>
 /// <param name="Instance">The Instance</param>
 /// <param name="Lifetime">The Lifetime</param>
 internal InstanceInfo(Type instanceType, Type setupType, InstanceLifetime lifetime)
 {
     this.InstanceType = instanceType;
     this.Lifetime     = lifetime;
     this.Lifetime.SetType(setupType);
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:LifetimeManager"/> class.
 /// </summary>
 public LifetimeManager(InstanceLifetime instanceLifetime)
 {
     this.instanceLifetime = instanceLifetime;
 }