/// <summary> /// Create a host and initialize the environment. /// </summary> /// <param name="builder"></param> public void Init(HostEnvironment.Builder builder) { var hostEnvironment = builder.Create(); // setup any logging rules LoggingRules.SetRules(LoggingRulesList.Create(false, hostEnvironment.LoggingRules)); // create the main build host BuildHost.CreateHost(hostEnvironment); // now hang on, we need to do the appropriate registration and setup Logging.Set(hostEnvironment.Logger); // set the default collection comparer for children PrimitiveCollectionComparer.SetDefault(hostEnvironment.DefaultCollectionComparer); }
/// <summary> /// Settings for the default primary collection comparer. /// </summary> public static void PrimaryCollectionComparer(ICollectionComparer <IPrimitive> comparer) { PrimitiveCollectionComparer.SetDefault(comparer); }