/// <summary> /// Initializes configurations and creates builder and manager /// </summary> public static void Initialize(DataConfigurationBuilder builder) { if (Builder != null) { throw new InvalidOperationException("Data configuration is already initialized"); } Builder = builder; Manager = new DataConfigurationManager(); Configuration = Manager.Load(builder.ConfigFile); }
/// <summary> /// Destroys configuration factory options /// </summary> internal static void Destroy() { Builder = null; Manager = null; Configuration = null; }