Fix for #1401 - Change namespace of HttpResponseException

This commit is contained in:
Ryan Nowak 2014-10-17 18:43:06 -07:00
parent bd82e584f0
commit 77c4391e47
4 changed files with 8 additions and 4 deletions

View File

@ -1,11 +1,12 @@
// 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.
using System;
using Microsoft.AspNet.Mvc;
using System.Net;
using System.Net.Http;
using ShimResources = Microsoft.AspNet.Mvc.WebApiCompatShim.Resources;
namespace Microsoft.AspNet.Mvc.WebApiCompatShim
namespace System.Web.Http
{
public class HttpResponseException : Exception
{
@ -23,7 +24,7 @@ namespace Microsoft.AspNet.Mvc.WebApiCompatShim
/// </summary>
/// <param name="response">The response message.</param>
public HttpResponseException([NotNull] HttpResponseMessage response)
: base(Resources.HttpResponseExceptionMessage)
: base(ShimResources.HttpResponseExceptionMessage)
{
Response = response;
}

View File

@ -2,6 +2,7 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Net.Http;
using System.Web.Http;
namespace Microsoft.AspNet.Mvc.WebApiCompatShim
{

View File

@ -1,12 +1,13 @@
// 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.
#if !ASPNETCORE50
using System.Collections.Generic;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Microsoft.AspNet.PipelineCore;
using Microsoft.AspNet.Routing;
#if !ASPNETCORE50
using Moq;
#endif
using Xunit;

View File

@ -3,6 +3,7 @@
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Microsoft.AspNet.Testing;
using Xunit;