Fix for #1401 - Change namespace of HttpResponseException
This commit is contained in:
parent
bd82e584f0
commit
77c4391e47
|
|
@ -1,11 +1,12 @@
|
||||||
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
|
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
using System;
|
using Microsoft.AspNet.Mvc;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
using ShimResources = Microsoft.AspNet.Mvc.WebApiCompatShim.Resources;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.Mvc.WebApiCompatShim
|
namespace System.Web.Http
|
||||||
{
|
{
|
||||||
public class HttpResponseException : Exception
|
public class HttpResponseException : Exception
|
||||||
{
|
{
|
||||||
|
|
@ -23,7 +24,7 @@ namespace Microsoft.AspNet.Mvc.WebApiCompatShim
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="response">The response message.</param>
|
/// <param name="response">The response message.</param>
|
||||||
public HttpResponseException([NotNull] HttpResponseMessage response)
|
public HttpResponseException([NotNull] HttpResponseMessage response)
|
||||||
: base(Resources.HttpResponseExceptionMessage)
|
: base(ShimResources.HttpResponseExceptionMessage)
|
||||||
{
|
{
|
||||||
Response = response;
|
Response = response;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
using System.Web.Http;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.Mvc.WebApiCompatShim
|
namespace Microsoft.AspNet.Mvc.WebApiCompatShim
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,13 @@
|
||||||
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
|
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
|
#if !ASPNETCORE50
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
using System.Web.Http;
|
||||||
using Microsoft.AspNet.PipelineCore;
|
using Microsoft.AspNet.PipelineCore;
|
||||||
using Microsoft.AspNet.Routing;
|
using Microsoft.AspNet.Routing;
|
||||||
#if !ASPNETCORE50
|
|
||||||
using Moq;
|
using Moq;
|
||||||
#endif
|
#endif
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
using System.Web.Http;
|
||||||
using Microsoft.AspNet.Testing;
|
using Microsoft.AspNet.Testing;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue