µ¿Àû ±¸¼º ¼øÀ§ ¹× ¿ä¾à
- °Ô½ÃÀÚ À̸§:
- Herbie Smith
µ¿Àû ±¸¼º ű×
µ¿Àû ±¸¼º ¼³¸í
µ¿Àû ±¸¼ºÀº system.configuration.configurationManager Ŭ·¡½º¿¡ ´ëÇÑ API ȣȯ ±³Ã¼¸¦ Á¦°øÇÏ´Â (¸Å¿ì) ÀÛÀº ¶óÀ̺귯¸®·Î °³¹ßµÇ¾î App.config ÆÄÀÏÀ» ´Ù½Ã ½ÃÀÛÇÒ ÇÊ¿ä¾øÀÌ ÀÚµ¿À¸·Î·ÎµåµË´Ï´Ù. ¶óÀÌºê ½Ã½ºÅÛ¿¡ ±¸¼º ¼³Á¤ÀÌ º¯°æµÇ¾î¾ßÇÏ´Â °æ¿ì °øÅëÀû ÀÎ ¹®Á¦°¡ ÀÖÀ½À» ¹ß°ßÇß½À´Ï´Ù. ƯÈ÷ ±¸¼ºÀÌ º¯°æµÇ±â À§Çؼ´Â ´Ù½Ã ½ÃÀÛÇÏ¿© ´Ù½Ã ½ÃÀÛ ÇؾßÇÏ´Â ¹é ¿£µå ¼¹ö¸¦ »ç¿ëÇÕ´Ï´Ù. DynamicConfigurationManager´Â º¯°æÀ» À§ÇØ .config ÆÄÀÏÀ»º¸°í Áï½Ã ±¸¼ºÀ» »õ·Î °íÄ¡¸éÀÌ ¹®Á¦¸¦ app.config ÆÄÀÏ¿¡ ó¸®ÇÕ´Ï´Ù. DynamicConfigurationManager´Â .NET 2.0 System.Configuration ³×ÀÓ ½ºÆäÀ̽ºÀÇ ConfigurationManager Ŭ·¡½º¸¦ ´ëüÇÏ´Â 'ÄÚµå ȣȯ'Ŭ·¡½ºÀÔ´Ï´Ù. Áï, Äڵ忡¼ DynamicConfigurationManager.Initialise ()¸¦ »ç¿ëÇÏ¿© ConfigurationManager¸¦ °£´ÜÇÏ°Ô ´ëü ÇÔÀ» ÀǹÌÇÕ´Ï´Ù. .config ÆÄÀÏÀÇ º¯°æ¿¡ ´ëÇÑ ÀÀ´äÀ¸·Î ±¸¼º º¯°æÀ» ¼öÇàÇؾßÇß½À´Ï´Ù.
µ¿Àû ±¸¼º °ü·Ã ¼ÒÇÁÆ®¿þ¾î