From 81bd9111faaf98a52679daae863ab04dce96e63e Mon Sep 17 00:00:00 2001 From: Joe4evr Date: Fri, 19 Jan 2018 03:16:44 +0100 Subject: [PATCH] Add comment about the ServiceProviderFactory in the quickstart --- docs/guides/getting_started/samples/intro/structure.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/guides/getting_started/samples/intro/structure.cs b/docs/guides/getting_started/samples/intro/structure.cs index 9ba728133..2520e494c 100644 --- a/docs/guides/getting_started/samples/intro/structure.cs +++ b/docs/guides/getting_started/samples/intro/structure.cs @@ -48,6 +48,9 @@ class Program // Setup your DI container. ServiceProvider = ConfigureServices(), + // If you have a service that's dependant on the CommandService instance, + // use ServiceProviderFactory instead. + //ServiceProviderFactory = (cs => ConfigureServices(cs)), // There's a few more properties you can set, // for example, case-insensitive commands.