fixed net-1.0 build error

This commit is contained in:
eeichinger
2009-03-04 22:08:14 +00:00
parent 9145ea30b9
commit 5ee83c6a37
3 changed files with 3 additions and 17 deletions

View File

@@ -234,15 +234,13 @@ namespace Spring.Web.Support
get { return (Mode == ResultMode.Transfer); }
}
#if !NET_1_0
/// <summary>
/// Indicates, if <see cref="HttpServerUtility.Redirect(string,bool)"/> should be called with endResponse='true' | 'false'. Only relevant for ResultMode.RedirectXXXX modes.
/// </summary>
/// <summary>
/// Indicates, if <see cref="HttpResponse.Redirect(string,bool)"/> should be called with endResponse='true' | 'false'. Only relevant for ResultMode.RedirectXXXX modes.
/// </summary>
public bool EndResponse
{
get { return (Mode == ResultMode.Redirect); }
}
#endif
#endregion
@@ -259,9 +257,7 @@ namespace Spring.Web.Support
switch (Mode)
{
case ResultMode.Redirect:
#if !NET_1_0
case ResultMode.RedirectNoAbort:
#endif
DoRedirect( context );
break;
case ResultMode.Transfer:
@@ -325,11 +321,7 @@ namespace Spring.Web.Support
/// <seealso cref="System.Web.HttpResponse.Redirect(string)"/>
protected virtual void DoRedirect( object context )
{
#if !NET_1_0
HttpContext.Current.Response.Redirect( GetRedirectUri( context ), EndResponse );
#else
HttpContext.Current.Response.Redirect( GetRedirectUri( context ) );
#endif
}
/// <summary>

View File

@@ -70,7 +70,6 @@ namespace Spring.Web.Support
/// <seealso cref="System.Web.HttpServerUtility.Transfer(string,bool)"/>
TransferNoPreserve = 2,
#if !NET_1_0
/// <summary>
/// A redirect.
/// </summary>
@@ -82,7 +81,5 @@ namespace Spring.Web.Support
/// </remarks>
/// <seealso cref="System.Web.HttpResponse.Redirect(string, bool)"/>
RedirectNoAbort = 3
#endif
}
}

View File

@@ -148,7 +148,6 @@ namespace Spring.Web.Support
"from the result string passed into the ctor.");
}
#if !NET_1_0
[Test]
public void WithRedirectNoAbortResultMode()
{
@@ -163,8 +162,6 @@ namespace Spring.Web.Support
"from the result string passed into the ctor.");
}
#endif
[Test]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void WithRubbishResultMode()