File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 11using System ;
22using System . Linq ;
3+ using System . Collections . Generic ;
34using ScriptCs . Contracts ;
45using ScriptCs . Logging ;
56using LogLevel = ScriptCs . Contracts . LogLevel ;
67
78namespace ScriptCs . Hosting
89{
10+
911 public class ScriptServicesBuilder : ServiceOverrides < IScriptServicesBuilder > , IScriptServicesBuilder
1012 {
1113 private readonly ITypeResolver _typeResolver ;
@@ -131,6 +133,12 @@ public IScriptServicesBuilder Debug(bool debug = true)
131133 return this ;
132134 }
133135
136+ public IScriptServicesBuilder SetOverrides ( Action < IDictionary < Type , object > > applyOverrides )
137+ {
138+ applyOverrides ( Overrides ) ;
139+ return this ;
140+ }
141+
134142 public IInitializationServices InitializationServices { get ; private set ; }
135143
136144 public IConsole ConsoleInstance { get ; private set ; }
You can’t perform that action at this time.
0 commit comments