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