예제 #1
0
 /// <summary>
 /// Gets a <see cref="SimpleServiceContainer"/> for a branch or, if <paramref name="branchName"/> is null,
 /// the primary <see cref="ServiceContainer"/> without trigerring plugin initialization.
 /// </summary>
 /// <param name="branchName">Branch name.</param>
 /// <returns>The primary service container or the container for the branch.</returns>
 public SimpleServiceContainer GetServiceContainer(string branchName)
 {
     if (branchName == null)
     {
         return(ServiceContainer);
     }
     return(_branches.FindOrCreateWithoutInitialization(branchName).ServiceContainer);
 }