Skip to content

Commit

Permalink
Changing the type of 'roundhouse.tasks.Roundhouse.RecoveryMode' to 'S…
Browse files Browse the repository at this point in the history
…ystem.String'
  • Loading branch information
sliekens committed Jul 6, 2015
1 parent 847cf3c commit 9facf7c
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion product/roundhouse.tasks/Roundhouse.cs
Expand Up @@ -16,6 +16,8 @@

public sealed class Roundhouse : ITask, ConfigurationPropertyHolder
{
private RecoveryMode recoveryMode;

#region MSBuild

public IBuildEngine BuildEngine { get; set; }
Expand Down Expand Up @@ -119,7 +121,35 @@ bool ITask.Execute()

public bool WithTransaction { get; set; }

public RecoveryMode RecoveryMode { get; set; }
RecoveryMode ConfigurationPropertyHolder.RecoveryMode
{
get
{
return this.recoveryMode;
}
set
{
this.recoveryMode = value;
}
}

public string RecoveryMode
{
get
{
return this.recoveryMode.ToString();
}
set
{
RecoveryMode result;
if (!Enum.TryParse(value, true, out result))
{
throw new ArgumentOutOfRangeException("value", value, "The value of 'RecoveryMode' must be one of these values: 'NoChange', 'Simple' or 'Full'.");
}

this.recoveryMode = result;
}
}

[Obsolete("Use RecoverMode=Simple now")]
public bool RecoveryModeSimple { get; set; }
Expand Down

0 comments on commit 9facf7c

Please sign in to comment.