Ejemplo n.º 1
0
        public static ConfigurationManagement GetConfigurationManagementInstance()
        {
            if (_configurationManagement == null)
            {
                _configurationManagement = new ConfigurationManagement(Guid.NewGuid());
            }

            return(_configurationManagement);
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            ConfigurationManagement configuration1 = ConfigurationManagement.GetConfigurationManagementInstance();

            Console.WriteLine(configuration1.Id);

            ConfigurationManagement configuration2 = ConfigurationManagement.GetConfigurationManagementInstance();

            Console.WriteLine(configuration2.Id);

            Console.ReadLine();
        }