Browse Source

[docs] Merge pull request #397 from Esscoder/patch-2

Fixed Install -> commands.LoadAssembly
tags/1.0-rc
Christopher F GitHub 8 years ago
parent
commit
106ff4df5d
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      docs/guides/samples/dependency_map_setup.cs

+ 2
- 2
docs/guides/samples/dependency_map_setup.cs View File

@@ -11,7 +11,7 @@ public class Commands
var map = new DependencyMap(); var map = new DependencyMap();
map.Add(client); map.Add(client);
map.Add(commands); map.Add(commands);
await commands.LoadAssembly(Assembly.GetCurrentAssembly(), map);
await commands.AddModulesAsync(Assembly.GetEntryAssembly());
} }
// In ConfigureServices, we will inject the Dependency Map with // In ConfigureServices, we will inject the Dependency Map with
// all of the services our client will use. // all of the services our client will use.
@@ -21,4 +21,4 @@ public class Commands
map.Add(new DatabaseService(map)); map.Add(new DatabaseService(map));
} }
// ... // ...
}
}

Loading…
Cancel
Save