From 0e43d6c6f552337c35a1ce474b9827a703d7f6bf Mon Sep 17 00:00:00 2001 From: Evan Sours Date: Sat, 3 Dec 2016 17:44:32 -0700 Subject: [PATCH] Fixed Install -> commands.LoadAssembly await commands.LoadAssembly(Assembly.GetCurrentAssembly(), map); -> await commands.AddModulesAsync(Assembly.GetEntryAssembly()); --- docs/guides/samples/dependency_map_setup.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guides/samples/dependency_map_setup.cs b/docs/guides/samples/dependency_map_setup.cs index af791990e..1d25db43c 100644 --- a/docs/guides/samples/dependency_map_setup.cs +++ b/docs/guides/samples/dependency_map_setup.cs @@ -11,7 +11,7 @@ public class Commands var map = new DependencyMap(); map.Add(client); map.Add(commands); - await commands.LoadAssembly(Assembly.GetCurrentAssembly(), map); + await commands.AddModulesAsync(Assembly.GetEntryAssembly()); } // In ConfigureServices, we will inject the Dependency Map with // all of the services our client will use. @@ -21,4 +21,4 @@ public class Commands map.Add(new DatabaseService(map)); } // ... -} \ No newline at end of file +}