Skip to content

Commit af34c2a

Browse files
committed
Fix the name of ProxyAsync.
1 parent 0bb07d3 commit af34c2a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class MyController : Controller
3636
[Route("api/posts/{postId}")]
3737
public Task GetPosts(int postId)
3838
{
39-
return this.Proxy($"https://jsonplaceholder.typicode.com/posts/{postId}");
39+
return this.ProxyAsync($"https://jsonplaceholder.typicode.com/posts/{postId}");
4040
}
4141
}
4242
```

src/Core/AspNetCore.Proxy.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<Version>1.4.0</Version>
3+
<Version>1.4.1</Version>
44
<AssemblyName>AspNetCore.Proxy</AssemblyName>
55
<PackageId>AspNetCore.Proxy</PackageId>
66
<DocumentationFile>bin\AspNetCore.Proxy.xml</DocumentationFile>

src/Core/ProxyRouteExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static class ProxyExtensions
2626
/// A <see cref="Task"/> which, upon completion, has proxied the specified address and copied the response contents into
2727
/// the response for the <see cref="HttpContext"/>.
2828
/// </returns>
29-
public static Task Proxy(this Controller controller, string uri, Func<HttpContext, Exception, Task> onFailure = null)
29+
public static Task ProxyAsync(this Controller controller, string uri, Func<HttpContext, Exception, Task> onFailure = null)
3030
{
3131
return Helpers.HandleProxy(controller.HttpContext, uri, onFailure);
3232
}

src/Test/UnitTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ public class MvcController : Controller
209209
[Route("api/controller/posts/{postId}")]
210210
public Task GetPosts(int postId)
211211
{
212-
return this.Proxy($"https://jsonplaceholder.typicode.com/posts/{postId}");
212+
return this.ProxyAsync($"https://jsonplaceholder.typicode.com/posts/{postId}");
213213
}
214214
}
215215
}

0 commit comments

Comments
 (0)