{"id":42895,"date":"2024-11-13T22:28:07","date_gmt":"2024-11-13T22:28:07","guid":{"rendered":"https:\/\/atmokpo.com\/w\/?p=42895"},"modified":"2024-11-26T06:34:33","modified_gmt":"2024-11-26T06:34:33","slug":"mvvm-4-dependency-injection%ea%b3%bc-service-locator-%ed%8c%a8%ed%84%b4-service-locator-%ed%8c%a8%ed%84%b4%ea%b3%bc-di-%ec%bb%a8%ed%85%8c%ec%9d%b4%eb%84%88%ec%9d%98-%ec%97%ad%ed%95%a0","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/42895\/","title":{"rendered":"[MVVM] 4.Dependency Injection\uacfc Service Locator \ud328\ud134, Service Locator \ud328\ud134\uacfc DI \ucee8\ud14c\uc774\ub108\uc758 \uc5ed\ud560"},"content":{"rendered":"<article>\n<header>\n<p>\ub0a0\uc9dc: <time datetime=\"2023-10-03\">2023\ub144 10\uc6d4 3\uc77c<\/time><\/p>\n<p>\uc800\uc790: <span class=\"author\">Your Name<\/span><\/p>\n<\/header>\n<section>\n<h2>\ubaa9\ucc28<\/h2>\n<ol>\n<li><a href=\"#introduction\">1. \uc11c\ub860<\/a><\/li>\n<li><a href=\"#mvvm-intro\">2. MVVM \uac1c\uc694<\/a><\/li>\n<li><a href=\"#dependency-injection\">3. Dependency Injection\uc758 \uc911\uc694\uc131<\/a><\/li>\n<li><a href=\"#service-locator-pattern\">4. Service Locator \ud328\ud134 \uc18c\uac1c<\/a><\/li>\n<li><a href=\"#comparison\">5. Service Locator \ud328\ud134\uacfc Dependency Injection\uc758 \ube44\uad50<\/a><\/li>\n<li><a href=\"#di-containers\">6. DI \ucee8\ud14c\uc774\ub108\uc758 \uc5ed\ud560<\/a><\/li>\n<li><a href=\"#examples\">7. \ucf54\ub4dc \uc608\uc81c<\/a><\/li>\n<li><a href=\"#conclusion\">8. \uacb0\ub860<\/a><\/li>\n<\/ol>\n<\/section>\n<section id=\"introduction\">\n<h2>1. \uc11c\ub860<\/h2>\n<p>\n            \ud604\ub300 \uc18c\ud504\ud2b8\uc6e8\uc5b4 \uac1c\ubc1c\uc5d0\uc11c\uc758 \uc544\ud0a4\ud14d\ucc98\ub294 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uc720\uc9c0\ubcf4\uc218\uc131\uacfc \ud655\uc7a5\uc131\uc5d0 \ud070 \uc601\ud5a5\uc744 \ubbf8\uce69\ub2c8\ub2e4. C# WPF \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud560 \ub54c, MVVM (Model-View-ViewModel) \ud328\ud134\uc740 \ub370\uc774\ud130 \ubc14\uc778\ub529\uacfc \uc0ac\uc6a9\uc790 \uc778\ud130\ud398\uc774\uc2a4(UI) \ub17c\ub9ac\ub97c \ud6a8\uacfc\uc801\uc73c\ub85c \ubd84\ub9ac\ud558\uae30 \uc704\ud55c \uc8fc\uc694 \ubc29\ubc95\ub860\uc73c\ub85c \uc790\ub9ac \uc7a1\uc558\uc2b5\ub2c8\ub2e4. \ubcf8 \uae00\uc5d0\uc11c\ub294 MVVM \ud328\ud134\uc744 \uad6c\ud604\ud558\ub294 \ub370 \uc788\uc5b4 Dependency Injection(DI)\uacfc Service Locator \ud328\ud134\uc758 \uc911\uc694\uc131\uacfc \uc5ed\ud560\uc5d0 \ub300\ud574 \uae4a\uc774 \uc788\uac8c \ud0d0\uad6c\ud558\uace0\uc790 \ud569\ub2c8\ub2e4.\n        <\/p>\n<\/section>\n<section id=\"mvvm-intro\">\n<h2>2. MVVM \uac1c\uc694<\/h2>\n<p>\n            MVVM \ud328\ud134\uc740 \uc138 \uac00\uc9c0 \uc8fc\uc694 \uad6c\uc131 \uc694\uc18c\uc778 Model, View, ViewModel\ub85c \ub098\ub258\uc5b4\uc838 \uc788\uc2b5\ub2c8\ub2e4. \uc774 \uad6c\uc870\ub294 \ub2e4\uc74c\uacfc \uac19\uc740 \uc7a5\uc810\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4:\n        <\/p>\n<ul>\n<li><strong>\ubd84\ub9ac\ub41c \uad00\uc2ec\uc0ac:<\/strong> UI\uc640 \ube44\uc988\ub2c8\uc2a4 \ub85c\uc9c1\uc744 \ubd84\ub9ac\ud568\uc73c\ub85c\uc368 \ucf54\ub4dc\uc758 \uc774\ud574\uc640 \uc720\uc9c0\ubcf4\uc218\uac00 \uc6a9\uc774\ud569\ub2c8\ub2e4.<\/li>\n<li><strong>\ub2e8\uc704 \ud14c\uc2a4\ud2b8:<\/strong> ViewModel\uc744 \ub3c5\ub9bd\uc801\uc73c\ub85c \ud14c\uc2a4\ud2b8\ud560 \uc218 \uc788\uc5b4 \ud14c\uc2a4\ud2b8 \uc8fc\ub3c4 \uac1c\ubc1c(TDD)\uc774 \uac00\ub2a5\ud574\uc9d1\ub2c8\ub2e4.<\/li>\n<li><strong>\uc7ac\uc0ac\uc6a9\uc131:<\/strong> ViewModel\uc740 \ub2e4\uc591\ud55c View\uc640 \uc5f0\uacb0\ub420 \uc218 \uc788\uc5b4 \ucf54\ub4dc \uc7ac\uc0ac\uc6a9\uc131\uc744 \ub192\uc785\ub2c8\ub2e4.<\/li>\n<\/ul>\n<p>\n            \uc774\ub7ec\ud55c \ubc29\uc2dd\uc73c\ub85c MVVM \ud328\ud134\uc740 \ub300\uaddc\ubaa8 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c \ub9e4\uc6b0 \uc720\uc6a9\ud558\uac8c \uc0ac\uc6a9\ub429\ub2c8\ub2e4. \ud558\uc9c0\ub9cc \ubcf5\uc7a1\ud55c \ube44\uc988\ub2c8\uc2a4 \ub85c\uc9c1\uc774\ub098 \uc678\ubd80 \uc758\uc874\uc131\uc744 \uad00\ub9ac\ud560 \ub54c \ubc1c\uc0dd\ud558\ub294 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\uae30 \uc704\ud574 Dependency Injection\uacfc Service Locator \ud328\ud134\uc744 \ud6a8\uacfc\uc801\uc73c\ub85c \ud65c\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n        <\/p>\n<\/section>\n<section id=\"dependency-injection\">\n<h2>3. Dependency Injection\uc758 \uc911\uc694\uc131<\/h2>\n<p>\n            Dependency Injection(DI)\uc740 \uac1d\uccb4\uc9c0\ud5a5 \ud504\ub85c\uadf8\ub798\ubc0d\uc758 \uc6d0\uce59 \uc911 \ud558\ub098\uc778 &#8216;\uc81c\uc5b4\uc758 \uc5ed\uc804(Inversion of Control)&#8217;\uc744 \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc785\ub2c8\ub2e4. DI\ub97c \uc0ac\uc6a9\ud558\uba74 \uac1d\uccb4 \uac04\uc758 \uc758\uc874\uc131\uc744 \uc8fc\uc785\ud558\uc5ec \ucf54\ub4dc\uc758 \uacb0\ud569\ub3c4\ub97c \uc904\uc774\uace0 \ubaa8\ub4c8\ud654\ub97c \ucd09\uc9c4\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. DI\uc758 \uc8fc\uc694 \uc774\uc810\uc740 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:\n        <\/p>\n<ul>\n<li><strong>\ud14c\uc2a4\ud2b8 \uc6a9\uc774\uc131:<\/strong> \uc678\ubd80 \uc758\uc874\uc131\uc744 \uc8fc\uc785\ubc1b\uae30 \ub54c\ubb38\uc5d0 Mock \uac1d\uccb4\ub97c \ud1b5\ud574 \ud14c\uc2a4\ud2b8\uac00 \uc6a9\uc774\ud569\ub2c8\ub2e4.<\/li>\n<li><strong>\uc720\uc9c0\ubcf4\uc218\uc131 \ud5a5\uc0c1:<\/strong> \uc758\uc874\uc131\uc744 \ucd94\uc801\ud558\uace0 \uad00\ub9ac\ud558\uae30 \uc27d\uae30 \ub54c\ubb38\uc5d0 \ucf54\ub4dc\uc758 \ubcc0\uacbd\uc774\ub098 \uc5c5\ub370\uc774\ud2b8 \uc2dc \uc720\uc5f0\uc131\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4.<\/li>\n<li><strong>\ud655\uc7a5\uc131:<\/strong> \uc0c8\ub85c\uc6b4 \uae30\ub2a5\uc744 \ucd94\uac00\ud558\uac70\ub098 \uae30\uc874 \uae30\ub2a5\uc744 \uc218\uc815\ud560 \ub54c, \uae30\uc874 \ucf54\ub4dc\ub97c \ubcc0\uacbd\ud558\uc9c0 \uc54a\uace0\ub3c4 \ud544\uc694\uc5d0 \ub530\ub77c \uc124\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<\/ul>\n<p>\n            WPF MVVM \ud328\ud134 \ub0b4\uc5d0\uc11c DI\ub294 ViewModel\uacfc Model \uac04\uc758 \uc758\uc874\uc131\uc744 \uad00\ub9ac\ud558\ub294 \ub370 \uc911\uc694\ud55c \uc5ed\ud560\uc744 \ud569\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, ViewModel\uc774 \ud2b9\uc815 \uc11c\ube44\uc2a4\uc5d0 \uc758\uc874\ud558\uace0 \uc788\uc744 \ub54c, DI\ub97c \ud65c\uc6a9\ud558\uc5ec \uc774 \uc11c\ube44\uc2a4\ub97c \uc778\uc2a4\ud134\uc2a4\ud654\ud558\uac70\ub098 \uad50\uccb4\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n        <\/p>\n<\/section>\n<section id=\"service-locator-pattern\">\n<h2>4. Service Locator \ud328\ud134 \uc18c\uac1c<\/h2>\n<p>\n            Service Locator \ud328\ud134\uc740 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uc804\uc5ed\uc5d0\uc11c \uc11c\ube44\uc2a4 \uac1d\uccb4\ub97c \ucc3e\uace0 \ubc18\ud658\ud558\ub294 \uc5ed\ud560\uc744 \ud558\ub294 \uc911\uc559 \uc9d1\uc911\uc2dd \uac1d\uccb4\uc785\ub2c8\ub2e4. \uac01 \uc11c\ube44\uc2a4\uc758 \uc0dd\uc131\uacfc \uc8fc\uc785\uc744 \uad00\ub9ac\ud558\ub294 DI\uc640\ub294 \ub2ec\ub9ac, Service Locator\ub294 \ud074\ub77c\uc774\uc5b8\ud2b8\uac00 \uc11c\ube44\uc2a4 \uc778\uc2a4\ud134\uc2a4\ub97c \uc694\uccad\ud560 \uc218 \uc788\ub294 \uba54\ucee4\ub2c8\uc998\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. \ub2e4\uc74c\uc740 Service Locator \ud328\ud134\uc758 \uc8fc\uc694 \ud2b9\uc9d5\uc785\ub2c8\ub2e4:\n        <\/p>\n<ul>\n<li><strong>\uc911\uc559 \uc9d1\uc911\uc2dd \uad00\ub9ac:<\/strong> \ubaa8\ub4e0 \uc11c\ube44\uc2a4\uac00 \uc911\uc559 \uc704\uce58\uc5d0 \ub4f1\ub85d\ub418\uc5b4 \uc788\uc73c\ubbc0\ub85c \ud2b9\uc815 \uc11c\ube44\uc2a4\uc5d0 \ub300\ud55c \uc811\uadfc\uc774 \ub2e8\uc21c\ud654\ub429\ub2c8\ub2e4.<\/li>\n<li><strong>\ub290\uc2a8\ud55c \uacb0\ud569:<\/strong> \ud074\ub77c\uc774\uc5b8\ud2b8\uac00 \uc0ac\uc804 \uc815\uc758\ub41c \uc11c\ube44\uc2a4\uc5d0 \uc758\uc874\ud558\uc9c0 \uc54a\uace0 \ub7f0\ud0c0\uc784\uc5d0 \ud544\uc694\ud55c \uc11c\ube44\uc2a4\ub9cc \uc694\uccad\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li><strong>\uc720\uc9c0\ubcf4\uc218\uc131 \uc800\ud558:<\/strong> \uc758\uc874\uc131\uc774 \uc228\uaca8\uc838 \uc788\uae30 \ub54c\ubb38\uc5d0 \ud074\ub77c\uc774\uc5b8\ud2b8\uac00 \ud544\uc694\ub85c \ud558\ub294 \uc11c\ube44\uc2a4\uac00 \ubb34\uc5c7\uc778\uc9c0 \ud30c\uc545\ud558\uae30 \uc5b4\ub824\uc6b8 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<\/ul>\n<p>\n            Service Locator\ub294 DI\uc758 \ubcf4\uc644\uc73c\ub85c \uc0ac\uc6a9\ub420 \uc218 \uc788\uc9c0\ub9cc, \uc758\uc874\uc131 \uad00\ub9ac\ub97c \uba85\uc2dc\uc801\uc73c\ub85c \ud558\uc9c0 \uc54a\uae30 \ub54c\ubb38\uc5d0 \uacb0\ud569\ub3c4\ub97c \uc99d\uac00\uc2dc\ud0a4\uace0 \ud14c\uc2a4\ud2b8\ub97c \uc5b4\ub835\uac8c \ub9cc\ub4e4 \uc218 \uc788\ub294 \ub2e8\uc810\uc774 \uc788\uc2b5\ub2c8\ub2e4. \ub530\ub77c\uc11c \uc774\ub7ec\ud55c \uc810\uc744 \uace0\ub824\ud558\uc5ec \uc801\uc808\ud788 \uc0ac\uc6a9\ud574\uc57c \ud569\ub2c8\ub2e4.\n        <\/p>\n<\/section>\n<section id=\"comparison\">\n<h2>5. Service Locator \ud328\ud134\uacfc Dependency Injection\uc758 \ube44\uad50<\/h2>\n<p>\n            DI\uc640 Service Locator\ub294 \ubaa8\ub450 \uc758\uc874\uc131\uc744 \uad00\ub9ac\ud558\uae30 \uc704\ud55c \ud328\ud134\uc774\uc9c0\ub9cc, \ubcf8\uc9c8\uc801\uc73c\ub85c \ub2e4\ub978 \uc811\uadfc \ubc29\uc2dd\uc744 \uac00\uc9c0\uace0 \uc788\uc2b5\ub2c8\ub2e4. \ub450 \ud328\ud134\uc758 \ucc28\uc774\uc810\uc744 \uc0b4\ud3b4\ubcf4\uba74 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:\n        <\/p>\n<table>\n<thead>\n<tr>\n<th>\ud2b9\uc9d5<\/th>\n<th>Dependency Injection<\/th>\n<th>Service Locator<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\uc758\uc874\uc131 \uad00\ub9ac<\/td>\n<td>\ud074\ub77c\uc774\uc5b8\ud2b8\uac00 \uc678\ubd80\uc5d0\uc11c \uc8fc\uc785\ubc1b\uc74c<\/td>\n<td>\uc911\uc559 \uc704\uce58\uc5d0\uc11c \uc11c\ube44\uc2a4\ub97c \uc694\uccad\ud568<\/td>\n<\/tr>\n<tr>\n<td>\uacb0\ud569\ub3c4<\/td>\n<td>\ub0ae\uc74c (\ub290\uc2a8\ud55c \uacb0\ud569)<\/td>\n<td>\ub192\uc74c (\uc758\uc874\uc131\uc774 \uc228\uaca8\uc9d0)<\/td>\n<\/tr>\n<tr>\n<td>\ud14c\uc2a4\ud2b8 \uc6a9\uc774\uc131<\/td>\n<td>Mock \uac1d\uccb4\ub85c \ub300\uccb4 \uac00\ub2a5<\/td>\n<td>\ud14c\uc2a4\ud2b8\ud560 \ub54c \uc5b4\ub824\uc6c0<\/td>\n<\/tr>\n<tr>\n<td>\uad6c\ud604 \ubcf5\uc7a1\uc131<\/td>\n<td>DI \ucee8\ud14c\uc774\ub108 \ud544\uc694\ud568<\/td>\n<td>\uac04\ub2e8\ud55c \uc608\uc81c\uc5d0 \uc720\ub9ac<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\n            \uacb0\ub860\uc801\uc73c\ub85c, DI\ub294 \uba85\uc2dc\uc801\uc778 \uc758\uc874\uc131 \uad00\ub9ac\uc640 \ud14c\uc2a4\ud2b8 \uc6a9\uc774\uc131\uc744 \uc81c\uacf5\ud558\ub294 \ubc18\uba74, Service Locator\ub294 \ud3b8\ub9ac\ud55c \uc11c\ube44\uc2a4 \uc811\uadfc\uc744 \uc6a9\uc774\ud558\uac8c \ud558\uc9c0\ub9cc \uc720\uc9c0\ubcf4\uc218\uc640 \ud14c\uc2a4\ud2b8 \uce21\uba74\uc5d0\uc11c\ub294 \ub2e8\uc810\uc774 \uc788\uc2b5\ub2c8\ub2e4. \ub530\ub77c\uc11c \ud544\uc694\ud55c \uacbd\uc6b0 \ub450 \ud328\ud134\uc744 \uc870\ud654\ub86d\uac8c \uc0ac\uc6a9\ud558\uc5ec \uc7a5\uc810\uc744 \uadf9\ub300\ud654\ud558\ub294 \uac83\uc774 \uc911\uc694\ud569\ub2c8\ub2e4.\n        <\/p>\n<\/section>\n<section id=\"di-containers\">\n<h2>6. DI \ucee8\ud14c\uc774\ub108\uc758 \uc5ed\ud560<\/h2>\n<p>\n            DI \ucee8\ud14c\uc774\ub108\ub294 \uac1d\uccb4\uc758 \uc778\uc2a4\ud134\uc2a4\ub97c \uc0dd\uc131\ud558\uace0 \uc758\uc874\uc131\uc744 \uad00\ub9ac\ud558\ub294 \ub3c4\uad6c\uc785\ub2c8\ub2e4. \ub2e4\uc591\ud55c DI \ucee8\ud14c\uc774\ub108\ub97c \ud65c\uc6a9\ud568\uc73c\ub85c\uc368 \ub2e4\uc74c\uacfc \uac19\uc740 \ubc29\uc2dd\uc73c\ub85c \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uc758\uc874\uc131\uc744 \uad00\ub9ac\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4:\n        <\/p>\n<ul>\n<li><strong>\uac1d\uccb4 \uc0dd\uba85\uc8fc\uae30 \uad00\ub9ac:<\/strong> DI \ucee8\ud14c\uc774\ub108\ub294 \uc2f1\uae00\ud1a4, \ud2b8\ub79c\uc9c0\uc5b8\ud2b8 \ubc0f \uc2a4\ucf54\ud504\uc5d0 \ub9de\ucdb0 \uac1d\uccb4\uc758 \uc0dd\uba85\uc8fc\uae30\ub97c \uad00\ub9ac\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li><strong>\uc790\ub3d9 \uc8fc\uc785:<\/strong> DI \ucee8\ud14c\uc774\ub108\ub294 \uc0dd\uc131\uc790\uc758 \ub9e4\uac1c\ubcc0\uc218\ub97c \uc790\ub3d9\uc73c\ub85c \ud574\uacb0\ud558\uc5ec \uc8fc\uc785\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li><strong>\uad6c\uc131 \uad00\ub9ac:<\/strong> \ubcf5\uc7a1\ud55c \uc758\uc874\uc131\uc744 \uad6c\uc131 \ud30c\uc77c\uc744 \ud1b5\ud574 \uc815\uc758\ud558\uac70\ub098 \uc218\ub3d9\uc73c\ub85c \ub4f1\ub85d\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<\/ul>\n<p>\n            \uc608\ub97c \ub4e4\uc5b4, .NET\uc5d0\uc11c\ub294 Microsoft.Extensions.DependencyInjection \ub124\uc784\uc2a4\ud398\uc774\uc2a4\ub97c \ud1b5\ud574 \uae30\ubcf8 DI \ucee8\ud14c\uc774\ub108\ub97c \uc81c\uacf5\ud558\uba70, Autofac, Ninject \ub4f1\uacfc \uac19\uc740 \uc11c\ub4dc\ud30c\ud2f0 \ucee8\ud14c\uc774\ub108\ub3c4 \ub110\ub9ac \uc0ac\uc6a9\ub429\ub2c8\ub2e4. \uc774\ub7ec\ud55c DI \ucee8\ud14c\uc774\ub108\ub97c \uc0ac\uc6a9\ud568\uc73c\ub85c\uc368 \uac1c\ubc1c\uc790\ub294 \ucf54\ub4dc\uc758 \uc720\uc9c0\ubcf4\uc218\uc131, \ud14c\uc2a4\ud2b8 \uc6a9\uc774\uc131 \ubc0f \ud655\uc7a5\uc131\uc744 \ud5a5\uc0c1\uc2dc\ud0ac \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n        <\/p>\n<\/section>\n<section id=\"examples\">\n<h2>7. \ucf54\ub4dc \uc608\uc81c<\/h2>\n<h3>\uc608\uc81c 1: Dependency Injection\uc744 \uc0ac\uc6a9\ud55c WPF MVVM \uad6c\uc870<\/h3>\n<pre><code>\nusing System.Windows;\nusing Microsoft.Extensions.DependencyInjection;\n\nnamespace WpfApp\n{\n    public partial class App : Application\n    {\n        public App()\n        {\n            var serviceProvider = ConfigureServices();\n            var mainWindow = serviceProvider.GetService<mainwindow>();\n            mainWindow.Show();\n        }\n\n        private IServiceProvider ConfigureServices()\n        {\n            var services = new ServiceCollection();\n            services.AddSingleton<mainwindow>();\n            services.AddSingleton<mainviewmodel>();\n            return services.BuildServiceProvider();\n        }\n    }\n}\n        <\/mainviewmodel><\/mainwindow><\/mainwindow><\/code><\/pre>\n<p>\n            \uc704\uc758 \uc608\uc81c\ub294 WPF \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c DI\ub97c \uc124\uc815\ud558\ub294 \ubc29\ubc95\uc744 \ubcf4\uc5ec\uc90d\ub2c8\ub2e4. MainViewModel\uc744 MainWindow\uc5d0 \uc8fc\uc785\ud568\uc73c\ub85c\uc368 View\uc640 ViewModel \uac04\uc758 \uc5f0\uacb0\uc744 \uc720\uc9c0\ud569\ub2c8\ub2e4.\n        <\/p>\n<h3>\uc608\uc81c 2: Service Locator \ud328\ud134 \uc0ac\uc6a9<\/h3>\n<pre><code>\npublic class ServiceLocator\n{\n    private static readonly IDictionary<type, object=\"\"> _services = new Dictionary<type, object=\"\">();\n\n    public static void Register<t>(T service)\n    {\n        _services[typeof(T)] = service;\n    }\n\n    public static T Get<t>()\n    {\n        return (T)_services[typeof(T)];\n    }\n}\n\n\/\/ \uc0ac\uc6a9 \uc608\uc2dc\nServiceLocator.Register(new SomeService());\nvar service = ServiceLocator.Get<someservice>();\n        <\/someservice><\/t><\/t><\/type,><\/type,><\/code><\/pre>\n<p>\n            Service Locator \ud328\ud134\uc744 \uad6c\ud604\ud55c \uac04\ub2e8\ud55c \uc608\uc81c\uc785\ub2c8\ub2e4. \ub4f1\ub85d\ub41c \uc11c\ube44\uc2a4\ub97c \uc27d\uac8c \ucc3e\uc744 \uc218 \uc788\ub294 \uad6c\uc870\ub85c \ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4.\n        <\/p>\n<\/section>\n<section id=\"conclusion\">\n<h2>8. \uacb0\ub860<\/h2>\n<p>\n            Dependency Injection\uacfc Service Locator \ud328\ud134\uc740 WPF MVVM \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c \uc758\uc874\uc131\uc744 \uad00\ub9ac\ud558\ub294 \uac15\ub825\ud55c \ub3c4\uad6c\uc785\ub2c8\ub2e4. \uac01 \ud328\ud134\uc740 \ud2b9\uc815 \uc0c1\ud669\uc5d0\uc11c \uc7a5\ub2e8\uc810\uc774 \uc788\uc73c\uba70, \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uc694\uad6c \uc0ac\ud56d\uc5d0 \ub530\ub77c \uc801\uc808\ud788 \uc120\ud0dd\ud574 \ud65c\uc6a9\ud560 \ud544\uc694\uac00 \uc788\uc2b5\ub2c8\ub2e4. DI\ub294 \ub354 \ub098\uc740 \ud14c\uc2a4\ud2b8 \uc6a9\uc774\uc131\uacfc \uc720\uc9c0\ubcf4\uc218\uc131\uc744 \uc81c\uacf5\ud558\uba70, Service Locator\ub294 \uac04\ud3b8\ud55c \uc11c\ube44\uc2a4 \uc811\uadfc \ubc29\uc2dd\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. \uacb0\uad6d, \ud604\ub300 \uc18c\ud504\ud2b8\uc6e8\uc5b4 \uac1c\ubc1c\uc5d0\uc11c\ub294 \ucf54\ub4dc \ud488\uc9c8, \uc131\ub2a5 \ubc0f \ud655\uc7a5\uc131\uc744 \uace0\ub824\ud558\uc5ec \ub450 \ud328\ud134\uc744 \uc870\ud654\ub86d\uac8c \uacb0\ud569\ud558\uc5ec \uc0ac\uc6a9\ud558\ub294 \uac83\uc774 \uc774\uc0c1\uc801\uc785\ub2c8\ub2e4.\n        <\/p>\n<\/section>\n<\/article>\n","protected":false},"excerpt":{"rendered":"<p>\ub0a0\uc9dc: 2023\ub144 10\uc6d4 3\uc77c \uc800\uc790: Your Name \ubaa9\ucc28 1. \uc11c\ub860 2. MVVM \uac1c\uc694 3. Dependency Injection\uc758 \uc911\uc694\uc131 4. Service Locator \ud328\ud134 \uc18c\uac1c 5. Service Locator \ud328\ud134\uacfc Dependency Injection\uc758 \ube44\uad50 6. DI \ucee8\ud14c\uc774\ub108\uc758 \uc5ed\ud560 7. \ucf54\ub4dc \uc608\uc81c 8. \uacb0\ub860 1. \uc11c\ub860 \ud604\ub300 \uc18c\ud504\ud2b8\uc6e8\uc5b4 \uac1c\ubc1c\uc5d0\uc11c\uc758 \uc544\ud0a4\ud14d\ucc98\ub294 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uc720\uc9c0\ubcf4\uc218\uc131\uacfc \ud655\uc7a5\uc131\uc5d0 \ud070 \uc601\ud5a5\uc744 \ubbf8\uce69\ub2c8\ub2e4. C# WPF \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud560 \ub54c, &hellip; <a href=\"https:\/\/atmokpo.com\/w\/42895\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;[MVVM] 4.Dependency Injection\uacfc Service Locator \ud328\ud134, Service Locator \ud328\ud134\uacfc DI \ucee8\ud14c\uc774\ub108\uc758 \uc5ed\ud560&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[39],"tags":[],"class_list":["post-42895","post","type-post","status-publish","format-standard","hentry","category-wpf-"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[MVVM] 4.Dependency Injection\uacfc Service Locator \ud328\ud134, Service Locator \ud328\ud134\uacfc DI \ucee8\ud14c\uc774\ub108\uc758 \uc5ed\ud560 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/atmokpo.com\/w\/42895\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[MVVM] 4.Dependency Injection\uacfc Service Locator \ud328\ud134, Service Locator \ud328\ud134\uacfc DI \ucee8\ud14c\uc774\ub108\uc758 \uc5ed\ud560 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\ub0a0\uc9dc: 2023\ub144 10\uc6d4 3\uc77c \uc800\uc790: Your Name \ubaa9\ucc28 1. \uc11c\ub860 2. MVVM \uac1c\uc694 3. Dependency Injection\uc758 \uc911\uc694\uc131 4. Service Locator \ud328\ud134 \uc18c\uac1c 5. Service Locator \ud328\ud134\uacfc Dependency Injection\uc758 \ube44\uad50 6. DI \ucee8\ud14c\uc774\ub108\uc758 \uc5ed\ud560 7. \ucf54\ub4dc \uc608\uc81c 8. \uacb0\ub860 1. \uc11c\ub860 \ud604\ub300 \uc18c\ud504\ud2b8\uc6e8\uc5b4 \uac1c\ubc1c\uc5d0\uc11c\uc758 \uc544\ud0a4\ud14d\ucc98\ub294 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uc720\uc9c0\ubcf4\uc218\uc131\uacfc \ud655\uc7a5\uc131\uc5d0 \ud070 \uc601\ud5a5\uc744 \ubbf8\uce69\ub2c8\ub2e4. C# WPF \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud560 \ub54c, &hellip; \ub354 \ubcf4\uae30 &quot;[MVVM] 4.Dependency Injection\uacfc Service Locator \ud328\ud134, Service Locator \ud328\ud134\uacfc DI \ucee8\ud14c\uc774\ub108\uc758 \uc5ed\ud560&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/42895\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-13T22:28:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T06:34:33+00:00\" \/>\n<meta name=\"author\" content=\"root\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:site\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"root\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/42895\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/42895\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"[MVVM] 4.Dependency Injection\uacfc Service Locator \ud328\ud134, Service Locator \ud328\ud134\uacfc DI \ucee8\ud14c\uc774\ub108\uc758 \uc5ed\ud560\",\"datePublished\":\"2024-11-13T22:28:07+00:00\",\"dateModified\":\"2024-11-26T06:34:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/42895\/\"},\"wordCount\":128,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"WPF \uac1c\ubc1c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/42895\/\",\"url\":\"https:\/\/atmokpo.com\/w\/42895\/\",\"name\":\"[MVVM] 4.Dependency Injection\uacfc Service Locator \ud328\ud134, Service Locator \ud328\ud134\uacfc DI \ucee8\ud14c\uc774\ub108\uc758 \uc5ed\ud560 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-13T22:28:07+00:00\",\"dateModified\":\"2024-11-26T06:34:33+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/42895\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/42895\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/42895\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[MVVM] 4.Dependency Injection\uacfc Service Locator \ud328\ud134, Service Locator \ud328\ud134\uacfc DI \ucee8\ud14c\uc774\ub108\uc758 \uc5ed\ud560\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/atmokpo.com\/w\/#website\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/atmokpo.com\/w\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"contentUrl\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"width\":400,\"height\":400,\"caption\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\"},\"image\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/bebubo4\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\",\"name\":\"root\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"caption\":\"root\"},\"sameAs\":[\"http:\/\/atmokpo.com\/w\"],\"url\":\"https:\/\/atmokpo.com\/w\/author\/root\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[MVVM] 4.Dependency Injection\uacfc Service Locator \ud328\ud134, Service Locator \ud328\ud134\uacfc DI \ucee8\ud14c\uc774\ub108\uc758 \uc5ed\ud560 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/atmokpo.com\/w\/42895\/","og_locale":"ko_KR","og_type":"article","og_title":"[MVVM] 4.Dependency Injection\uacfc Service Locator \ud328\ud134, Service Locator \ud328\ud134\uacfc DI \ucee8\ud14c\uc774\ub108\uc758 \uc5ed\ud560 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\ub0a0\uc9dc: 2023\ub144 10\uc6d4 3\uc77c \uc800\uc790: Your Name \ubaa9\ucc28 1. \uc11c\ub860 2. MVVM \uac1c\uc694 3. Dependency Injection\uc758 \uc911\uc694\uc131 4. Service Locator \ud328\ud134 \uc18c\uac1c 5. Service Locator \ud328\ud134\uacfc Dependency Injection\uc758 \ube44\uad50 6. DI \ucee8\ud14c\uc774\ub108\uc758 \uc5ed\ud560 7. \ucf54\ub4dc \uc608\uc81c 8. \uacb0\ub860 1. \uc11c\ub860 \ud604\ub300 \uc18c\ud504\ud2b8\uc6e8\uc5b4 \uac1c\ubc1c\uc5d0\uc11c\uc758 \uc544\ud0a4\ud14d\ucc98\ub294 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uc720\uc9c0\ubcf4\uc218\uc131\uacfc \ud655\uc7a5\uc131\uc5d0 \ud070 \uc601\ud5a5\uc744 \ubbf8\uce69\ub2c8\ub2e4. C# WPF \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud560 \ub54c, &hellip; \ub354 \ubcf4\uae30 \"[MVVM] 4.Dependency Injection\uacfc Service Locator \ud328\ud134, Service Locator \ud328\ud134\uacfc DI \ucee8\ud14c\uc774\ub108\uc758 \uc5ed\ud560\"","og_url":"https:\/\/atmokpo.com\/w\/42895\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-13T22:28:07+00:00","article_modified_time":"2024-11-26T06:34:33+00:00","author":"root","twitter_card":"summary_large_image","twitter_creator":"@bebubo4","twitter_site":"@bebubo4","twitter_misc":{"\uae00\uc4f4\uc774":"root","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"1\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/42895\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/42895\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"[MVVM] 4.Dependency Injection\uacfc Service Locator \ud328\ud134, Service Locator \ud328\ud134\uacfc DI \ucee8\ud14c\uc774\ub108\uc758 \uc5ed\ud560","datePublished":"2024-11-13T22:28:07+00:00","dateModified":"2024-11-26T06:34:33+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/42895\/"},"wordCount":128,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["WPF \uac1c\ubc1c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/42895\/","url":"https:\/\/atmokpo.com\/w\/42895\/","name":"[MVVM] 4.Dependency Injection\uacfc Service Locator \ud328\ud134, Service Locator \ud328\ud134\uacfc DI \ucee8\ud14c\uc774\ub108\uc758 \uc5ed\ud560 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-13T22:28:07+00:00","dateModified":"2024-11-26T06:34:33+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/42895\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/42895\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/42895\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"[MVVM] 4.Dependency Injection\uacfc Service Locator \ud328\ud134, Service Locator \ud328\ud134\uacfc DI \ucee8\ud14c\uc774\ub108\uc758 \uc5ed\ud560"}]},{"@type":"WebSite","@id":"https:\/\/atmokpo.com\/w\/#website","url":"https:\/\/atmokpo.com\/w\/","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","description":"","publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/atmokpo.com\/w\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/atmokpo.com\/w\/#organization","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","url":"https:\/\/atmokpo.com\/w\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/","url":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","contentUrl":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","width":400,"height":400,"caption":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8"},"image":{"@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/bebubo4"]},{"@type":"Person","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7","name":"root","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","caption":"root"},"sameAs":["http:\/\/atmokpo.com\/w"],"url":"https:\/\/atmokpo.com\/w\/author\/root\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/42895","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/comments?post=42895"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/42895\/revisions"}],"predecessor-version":[{"id":42896,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/42895\/revisions\/42896"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=42895"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=42895"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=42895"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}