Browse Source

Add missing semi-colons in ServiceProvider sample

pull/825/head
Hsu Still 8 years ago
parent
commit
9f52031dce
2 changed files with 10 additions and 4 deletions
  1. +7
    -1
      Discord.Net.sln
  2. +3
    -3
      docs/guides/commands/samples/dependency_map_setup.cs

+ 7
- 1
Discord.Net.sln View File

@@ -1,6 +1,6 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26228.4
VisualStudioVersion = 15.0.26730.12
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Discord.Net.Core", "src\Discord.Net.Core\Discord.Net.Core.csproj", "{91E9E7BD-75C9-4E98-84AA-2C271922E5C2}"
EndProject
@@ -142,4 +142,10 @@ Global
{6BDEEC08-417B-459F-9CA3-FF8BAB18CAC7} = {B0657AAE-DCC5-4FBF-8E5D-1FB578CF3012}
{9AFAB80E-D2D3-4EDB-B58C-BACA78D1EA30} = {CC3D4B1C-9DE0-448B-8AE7-F3F1F3EC5C3A}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {D2404771-EEC8-45F2-9D71-F3373F6C1495}
EndGlobalSection
GlobalSection(CodealikeProperties) = postSolution
SolutionGuid = a45217b4-a401-4dbf-8654-34d2ec034cd9
EndGlobalSection
EndGlobal

+ 3
- 3
docs/guides/commands/samples/dependency_map_setup.cs View File

@@ -9,9 +9,9 @@ public class Commands
{
// Here, we will inject the ServiceProvider with
// all of the services our client will use.
_serviceCollection.AddSingleton(client)
_serviceCollection.AddSingleton(new NotificationService())
_serviceCollection.AddSingleton(new DatabaseService())
_serviceCollection.AddSingleton(client);
_serviceCollection.AddSingleton(new NotificationService());
_serviceCollection.AddSingleton(new DatabaseService());
// ...
await _commands.AddModulesAsync(Assembly.GetEntryAssembly());
}


Loading…
Cancel
Save