Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Rename TransformerDecorators to Decorators.

  • Loading branch information...
commit bf3a051055a04ddf80d6be04af664cb9d1ad0cd7 1 parent 5880d8c
@lanwin authored
View
2  Source/CommandBasedComponents.csproj
@@ -55,7 +55,7 @@
<Compile Include="Core\DecoratedCommandBase.cs" />
<Compile Include="Core\IDecoratorCommand.cs" />
<Compile Include="Core\Interceptor.cs" />
- <Compile Include="Core\TransformerDecorators.cs" />
+ <Compile Include="Core\Decorators.cs" />
<Compile Include="Core\Context.cs" />
<Compile Include="Core\ICommand.cs" />
<Compile Include="Core\IContext.cs" />
View
2  Source/Core/TransformerDecorators.cs → Source/Core/Decorators.cs
@@ -4,7 +4,7 @@
namespace CommandBasedComponents.Core
{
[DebuggerNonUserCode]
- public static class TransformerDecorators
+ public static class Decorators
{
public static void Execute(this Func<ICommand, ICommand> decorator, ICommand command, IContext context)
{
View
16 Source/Scratchpad.cs
@@ -297,7 +297,7 @@ public void Execute(IContext context)
public class UninstallServicePackage : ChainCommand
{
public UninstallServicePackage()
- : base(TransformerDecorators.All)
+ : base(Decorators.All)
{
Add(new GetLocalPackageFromId());
Add(new GetServiceDescriptionFromPackage());
@@ -346,7 +346,7 @@ public void Execute(IContext context)
public class InstallServicePackage : ChainCommand
{
public InstallServicePackage()
- : base(TransformerDecorators.All)
+ : base(Decorators.All)
{
Add(new GetLocalPackageFromId());
Add(new GetRemotePackageFromId());
@@ -369,7 +369,7 @@ static bool IsDifferentVersion(IContext context)
public class InstallAppPackage : ChainCommand
{
public InstallAppPackage()
- : base(TransformerDecorators.All)
+ : base(Decorators.All)
{
//...
Add(new InstallNugetPackage());
@@ -380,7 +380,7 @@ public InstallAppPackage()
public class InstallPackage : ChainCommand
{
public InstallPackage()
- : base(TransformerDecorators.All)
+ : base(Decorators.All)
{
Add(new CommandRouter
{
@@ -405,7 +405,7 @@ public void Execute(IContext context)
public class IterateRequiredPackageIds : ChainCommand
{
public IterateRequiredPackageIds()
- : base(TransformerDecorators.All)
+ : base(Decorators.All)
{
}
@@ -425,7 +425,7 @@ public override void Execute(IContext context)
public class InstallRequiredPackages : ChainCommand
{
public InstallRequiredPackages()
- : base(TransformerDecorators.All)
+ : base(Decorators.All)
{
Add(new InitializeRequiredPackageIds());
Add(new IterateRequiredPackageIds
@@ -460,7 +460,7 @@ public class CommandRouter : DecoratedCommandBase, IEnumerable, ICommand
readonly List<IRoute> _routes = new List<IRoute>();
public CommandRouter(params IRoute[] routes)
- : base(TransformerDecorators.All)
+ : base(Decorators.All)
{
_routes.AddRange(routes);
}
@@ -516,7 +516,7 @@ public void Run()
context.Put(ServiceKeys.WindowsServiceInstaller, new WindowsServiceInstaller());
context.Put(ServiceKeys.NugetInstaller, new NugetInstaller());
context.Put(ServiceKeys.NugetLocator, new NugetLocator());
- context.Run(new InstallRequiredPackages(), TransformerDecorators.All);
+ context.Run(new InstallRequiredPackages(), Decorators.All);
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.