Ejemplo n.º 1
0
 private void EnsureNoManualActivationRequired(object obj)
 {
     if (obj == null)
     {
         return;
     }
     if (!HasValueTypeBehavior(obj))
     {
         if (!typeof(IActivatable).IsAssignableFrom(obj.GetType()))
         {
             ThrowUnsupportedOrderingException(obj.GetType(), "make it implement Activatable interface."
                                               );
         }
         if (!TransparentActivationSupport.IsTransparentActivationEnabledOn(_container))
         {
             ThrowUnsupportedOrderingException(obj.GetType(), "enable transparent activation support by adding TransparentActivationSupport to the configutation before opening the db."
                                               );
         }
     }
 }
 private bool IsTransparentActivationEnabled()
 {
     return(TransparentActivationSupport.IsTransparentActivationEnabledOn(_container));
 }