Exemplo n.º 1
0
 internal static void RegisterBridge(ICreateAssemblyBridge <T> bridge)
 {
     if (CreateAssemblyBridgeCache <T> .bridge != null &&
         !(CreateAssemblyBridgeCache <T> .bridge is CreateAssemblyDynamicBridge <T>))
     {
         return;
     }
     CreateAssemblyBridgeCache <T> .bridge = bridge;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Registers a <see cref="ICreateAssemblyBridge{T}"/> which associates
 /// the create assembly functionality to the <paramref name="bridge"/> provided
 /// versus an automatically generated variant of the same.
 /// </summary>
 /// <typeparam name="T">The type of <see cref="IIntermediateAssembly"/> to
 /// construct through the <paramref name="bridge"/>
 /// provided.</typeparam>
 /// <param name="bridge">The <see cref="ICreateAssemblyBridge{T}"/> which
 /// provides the create assembly functionality.</param>
 public static void RegisterCreateAssemblyBridge <T>(this ICreateAssemblyBridge <T> bridge)
     where T :
 IIntermediateAssembly
 {
     CreateAssemblyBridgeCache <T> .RegisterBridge(bridge);
 }