Esempio n. 1
0
        /// <summary>
        /// For test use only. Injects replacement behavior for the <see cref="Create(IEnumerable{Assembly})"/> method.
        /// </summary>
        internal static void HookServiceCreation(CreationHook hook)
        {
            s_CreationHook = hook;

            // The existing host, if any, is not retained past this call.
            s_defaultHost = null;
        }
Esempio n. 2
0
 /// <summary>
 /// Injects replacement behavior for the <see cref="Create(IEnumerable{Assembly})"/> method.
 /// </summary>
 /// <param name="hook"></param>
 internal static void HookServiceCreation(CreationHook hook)
 {
     s_CreationHook = hook;
 }