コード例 #1
0
 public ObjectInContainer(Type resolvingType, Type resolvedClassType, LifeStyleEnum lifeCycleEnum, ObjectTypeEnum objectType = ObjectTypeEnum.Default)
 {
     ResolvingType     = resolvingType;
     ResolvedClassType = resolvedClassType;
     LifeCycle         = lifeCycleEnum;
     ObjectType        = objectType;
 }
コード例 #2
0
 public void Register <TResolvingType, TClass>(LifeStyleEnum lifeCycle)
 {
     container.Add(new ObjectInContainer(typeof(TResolvingType), typeof(TClass), lifeCycle));
 }