Skip to content

Commit

Permalink
Rename TransformerDecorators to Decorators.
Browse files Browse the repository at this point in the history
  • Loading branch information
lanwin committed May 10, 2012
1 parent 5880d8c commit bf3a051
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Source/CommandBasedComponents.csproj
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<Compile Include="Core\DecoratedCommandBase.cs" /> <Compile Include="Core\DecoratedCommandBase.cs" />
<Compile Include="Core\IDecoratorCommand.cs" /> <Compile Include="Core\IDecoratorCommand.cs" />
<Compile Include="Core\Interceptor.cs" /> <Compile Include="Core\Interceptor.cs" />
<Compile Include="Core\TransformerDecorators.cs" /> <Compile Include="Core\Decorators.cs" />
<Compile Include="Core\Context.cs" /> <Compile Include="Core\Context.cs" />
<Compile Include="Core\ICommand.cs" /> <Compile Include="Core\ICommand.cs" />
<Compile Include="Core\IContext.cs" /> <Compile Include="Core\IContext.cs" />
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace CommandBasedComponents.Core namespace CommandBasedComponents.Core
{ {
[DebuggerNonUserCode] [DebuggerNonUserCode]
public static class TransformerDecorators public static class Decorators
{ {
public static void Execute(this Func<ICommand, ICommand> decorator, ICommand command, IContext context) public static void Execute(this Func<ICommand, ICommand> decorator, ICommand command, IContext context)
{ {
Expand Down
16 changes: 8 additions & 8 deletions Source/Scratchpad.cs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public void Execute(IContext context)
public class UninstallServicePackage : ChainCommand public class UninstallServicePackage : ChainCommand
{ {
public UninstallServicePackage() public UninstallServicePackage()
: base(TransformerDecorators.All) : base(Decorators.All)
{ {
Add(new GetLocalPackageFromId()); Add(new GetLocalPackageFromId());
Add(new GetServiceDescriptionFromPackage()); Add(new GetServiceDescriptionFromPackage());
Expand Down Expand Up @@ -346,7 +346,7 @@ public void Execute(IContext context)
public class InstallServicePackage : ChainCommand public class InstallServicePackage : ChainCommand
{ {
public InstallServicePackage() public InstallServicePackage()
: base(TransformerDecorators.All) : base(Decorators.All)
{ {
Add(new GetLocalPackageFromId()); Add(new GetLocalPackageFromId());
Add(new GetRemotePackageFromId()); Add(new GetRemotePackageFromId());
Expand All @@ -369,7 +369,7 @@ static bool IsDifferentVersion(IContext context)
public class InstallAppPackage : ChainCommand public class InstallAppPackage : ChainCommand
{ {
public InstallAppPackage() public InstallAppPackage()
: base(TransformerDecorators.All) : base(Decorators.All)
{ {
//... //...
Add(new InstallNugetPackage()); Add(new InstallNugetPackage());
Expand All @@ -380,7 +380,7 @@ public InstallAppPackage()
public class InstallPackage : ChainCommand public class InstallPackage : ChainCommand
{ {
public InstallPackage() public InstallPackage()
: base(TransformerDecorators.All) : base(Decorators.All)
{ {
Add(new CommandRouter Add(new CommandRouter
{ {
Expand All @@ -405,7 +405,7 @@ public void Execute(IContext context)
public class IterateRequiredPackageIds : ChainCommand public class IterateRequiredPackageIds : ChainCommand
{ {
public IterateRequiredPackageIds() public IterateRequiredPackageIds()
: base(TransformerDecorators.All) : base(Decorators.All)
{ {
} }


Expand All @@ -425,7 +425,7 @@ public override void Execute(IContext context)
public class InstallRequiredPackages : ChainCommand public class InstallRequiredPackages : ChainCommand
{ {
public InstallRequiredPackages() public InstallRequiredPackages()
: base(TransformerDecorators.All) : base(Decorators.All)
{ {
Add(new InitializeRequiredPackageIds()); Add(new InitializeRequiredPackageIds());
Add(new IterateRequiredPackageIds Add(new IterateRequiredPackageIds
Expand Down Expand Up @@ -460,7 +460,7 @@ public class CommandRouter : DecoratedCommandBase, IEnumerable, ICommand
readonly List<IRoute> _routes = new List<IRoute>(); readonly List<IRoute> _routes = new List<IRoute>();


public CommandRouter(params IRoute[] routes) public CommandRouter(params IRoute[] routes)
: base(TransformerDecorators.All) : base(Decorators.All)
{ {
_routes.AddRange(routes); _routes.AddRange(routes);
} }
Expand Down Expand Up @@ -516,7 +516,7 @@ public void Run()
context.Put(ServiceKeys.WindowsServiceInstaller, new WindowsServiceInstaller()); context.Put(ServiceKeys.WindowsServiceInstaller, new WindowsServiceInstaller());
context.Put(ServiceKeys.NugetInstaller, new NugetInstaller()); context.Put(ServiceKeys.NugetInstaller, new NugetInstaller());
context.Put(ServiceKeys.NugetLocator, new NugetLocator()); context.Put(ServiceKeys.NugetLocator, new NugetLocator());
context.Run(new InstallRequiredPackages(), TransformerDecorators.All); context.Run(new InstallRequiredPackages(), Decorators.All);
} }
} }
} }
Expand Down

0 comments on commit bf3a051

Please sign in to comment.