From 91ff88e2eec5ba92ca3d82dbc0bad75978e8ef94 Mon Sep 17 00:00:00 2001 From: Hsu Still <341464@gmail.com> Date: Wed, 28 Mar 2018 02:48:46 +0800 Subject: [PATCH] Fix DI module example --- docs/guides/commands/samples/dependency_module.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/guides/commands/samples/dependency_module.cs b/docs/guides/commands/samples/dependency_module.cs index 24009cc41..2014ed881 100644 --- a/docs/guides/commands/samples/dependency_module.cs +++ b/docs/guides/commands/samples/dependency_module.cs @@ -21,16 +21,16 @@ public class ModuleA : ModuleBase public class ModuleB : ModuleBase { - - // Public settable properties will be injected + // Public settable properties will be injected. public AnnounceService Announce { get; set; } - // Public properties without setters will not + // Public properties without setters will not be injected. public CommandService Commands { get; } // Public properties annotated with [DontInject] will not + // be injected. [DontInject] - public NotificationService { get; set; } + public NotificationService NotificationService { get; set; } public ModuleB(CommandService commands) {