Skip to content

Commit 04d1a14

Browse files
committed
Removed With... on overrides
1 parent 15f537b commit 04d1a14

File tree

2 files changed

+28
-28
lines changed

2 files changed

+28
-28
lines changed

src/ScriptCs.Contracts/IServiceOverrides.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,32 @@ public interface IServiceOverrides { }
44

55
public interface IServiceOverrides<out TConfig> : IServiceOverrides where TConfig : IServiceOverrides<TConfig>
66
{
7-
TConfig WithScriptExecutor<T>() where T : IScriptExecutor;
7+
TConfig ScriptExecutor<T>() where T : IScriptExecutor;
88

9-
TConfig WithScriptEngine<T>() where T : IScriptEngine;
9+
TConfig ScriptEngine<T>() where T : IScriptEngine;
1010

11-
TConfig WithScriptHostFactory<T>() where T : IScriptHostFactory;
11+
TConfig ScriptHostFactory<T>() where T : IScriptHostFactory;
1212

13-
TConfig WithScriptPackManager<T>() where T : IScriptPackManager;
13+
TConfig ScriptPackManager<T>() where T : IScriptPackManager;
1414

15-
TConfig WithScriptPackResolver<T>() where T : IScriptPackResolver;
15+
TConfig ScriptPackResolver<T>() where T : IScriptPackResolver;
1616

17-
TConfig WithInstallationProvider<T>() where T : IInstallationProvider;
17+
TConfig InstallationProvider<T>() where T : IInstallationProvider;
1818

19-
TConfig WithFileSystem<T>() where T : IFileSystem;
19+
TConfig FileSystem<T>() where T : IFileSystem;
2020

21-
TConfig WithAssemblyUtility<T>() where T : IAssemblyUtility;
21+
TConfig AssemblyUtility<T>() where T : IAssemblyUtility;
2222

23-
TConfig WithPackageContainer<T>() where T : IPackageContainer;
23+
TConfig PackageContainer<T>() where T : IPackageContainer;
2424

25-
TConfig WithPackageInstaller<T>() where T : IPackageInstaller;
25+
TConfig PackageInstaller<T>() where T : IPackageInstaller;
2626

27-
TConfig WithFilePreProcessor<T>() where T : IFilePreProcessor;
27+
TConfig FilePreProcessor<T>() where T : IFilePreProcessor;
2828

29-
TConfig WithPackageAssemblyResolver<T>() where T : IPackageAssemblyResolver;
29+
TConfig PackageAssemblyResolver<T>() where T : IPackageAssemblyResolver;
3030

31-
TConfig WithAssemblyResolver<T>() where T : IAssemblyResolver;
31+
TConfig AssemblyResolver<T>() where T : IAssemblyResolver;
3232

33-
TConfig WithLineProcessor<T>() where T : ILineProcessor;
33+
TConfig LineProcessor<T>() where T : ILineProcessor;
3434
}
3535
}

src/ScriptCs.Hosting/ServiceOverrides.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,85 +24,85 @@ protected ServiceOverrides(IDictionary<Type, object> overrides)
2424
Overrides = overrides;
2525
}
2626

27-
public TConfig WithScriptExecutor<T>() where T : IScriptExecutor
27+
public TConfig ScriptExecutor<T>() where T : IScriptExecutor
2828
{
2929
Overrides[typeof(IScriptExecutor)] = typeof(T);
3030
return _this;
3131
}
3232

33-
public TConfig WithScriptEngine<T>() where T : IScriptEngine
33+
public TConfig ScriptEngine<T>() where T : IScriptEngine
3434
{
3535
Overrides[typeof(IScriptEngine)] = typeof(T);
3636
return _this;
3737
}
3838

39-
public TConfig WithScriptHostFactory<T>() where T : IScriptHostFactory
39+
public TConfig ScriptHostFactory<T>() where T : IScriptHostFactory
4040
{
4141
Overrides[typeof(IScriptHostFactory)] = typeof(T);
4242
return _this;
4343
}
4444

45-
public TConfig WithScriptPackManager<T>() where T : IScriptPackManager
45+
public TConfig ScriptPackManager<T>() where T : IScriptPackManager
4646
{
4747
Overrides[typeof(IScriptPackManager)] = typeof(T);
4848
return _this;
4949
}
5050

51-
public TConfig WithScriptPackResolver<T>() where T : IScriptPackResolver
51+
public TConfig ScriptPackResolver<T>() where T : IScriptPackResolver
5252
{
5353
Overrides[typeof(IScriptPackResolver)] = typeof(T);
5454
return _this;
5555
}
5656

57-
public TConfig WithInstallationProvider<T>() where T : IInstallationProvider
57+
public TConfig InstallationProvider<T>() where T : IInstallationProvider
5858
{
5959
Overrides[typeof(IInstallationProvider)] = typeof(T);
6060
return _this;
6161
}
6262

63-
public TConfig WithFileSystem<T>() where T : IFileSystem
63+
public TConfig FileSystem<T>() where T : IFileSystem
6464
{
6565
Overrides[typeof(IFileSystem)] = typeof(T);
6666
return _this;
6767
}
6868

69-
public TConfig WithAssemblyUtility<T>() where T : IAssemblyUtility
69+
public TConfig AssemblyUtility<T>() where T : IAssemblyUtility
7070
{
7171
Overrides[typeof(IAssemblyUtility)] = typeof(T);
7272
return _this;
7373
}
7474

75-
public TConfig WithPackageContainer<T>() where T : IPackageContainer
75+
public TConfig PackageContainer<T>() where T : IPackageContainer
7676
{
7777
Overrides[typeof(IPackageContainer)] = typeof(T);
7878
return _this;
7979
}
8080

81-
public TConfig WithPackageInstaller<T>() where T : IPackageInstaller
81+
public TConfig PackageInstaller<T>() where T : IPackageInstaller
8282
{
8383
Overrides[typeof(IPackageInstaller)] = typeof(T);
8484
return _this;
8585
}
8686

87-
public TConfig WithFilePreProcessor<T>() where T : IFilePreProcessor
87+
public TConfig FilePreProcessor<T>() where T : IFilePreProcessor
8888
{
8989
Overrides[typeof(IFilePreProcessor)] = typeof(T);
9090
return _this;
9191
}
9292

93-
public TConfig WithPackageAssemblyResolver<T>() where T : IPackageAssemblyResolver
93+
public TConfig PackageAssemblyResolver<T>() where T : IPackageAssemblyResolver
9494
{
9595
Overrides[typeof(IPackageAssemblyResolver)] = typeof(T);
9696
return _this;
9797
}
9898

99-
public TConfig WithAssemblyResolver<T>() where T : IAssemblyResolver
99+
public TConfig AssemblyResolver<T>() where T : IAssemblyResolver
100100
{
101101
Overrides[typeof(IAssemblyResolver)] = typeof(T);
102102
return _this;
103103
}
104104

105-
public TConfig WithLineProcessor<T>() where T : ILineProcessor
105+
public TConfig LineProcessor<T>() where T : ILineProcessor
106106
{
107107
LineProcessors.Add(typeof(T));
108108
return _this;

0 commit comments

Comments
 (0)