internal static T Activate <T>(this IResolveContext <T> self) { if (self.IsNull()) { throw new NoNullAllowedException("The type to create was not set."); } if (self.TypeContext == null) { return(default(T)); } var context = ((IScopeContextInternal)self.TypeContext); return(context.Activate(context.GetActivationScope(), self.Initializer)); }