Exemplo n.º 1
0
        /// <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);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Destroys configuration factory options
 /// </summary>
 internal static void Destroy()
 {
     Builder       = null;
     Manager       = null;
     Configuration = null;
 }