Skip to content

Commit ea42cf1

Browse files
committed
SpecificVersion -> false
1 parent 876ce69 commit ea42cf1

File tree

3 files changed

+34
-1
lines changed

3 files changed

+34
-1
lines changed

DevTrends.MvcDonutCaching.Demo/Controllers/HomeController.cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
using System;
2+
using System.IO;
3+
using System.Net;
4+
using System.Threading.Tasks;
25
using System.Web.Mvc;
36
using DevTrends.MvcDonutCaching.Demo.Mvc;
7+
using Newtonsoft.Json;
48

59
namespace DevTrends.MvcDonutCaching.Demo.Controllers
610
{
@@ -56,5 +60,19 @@ public ActionResult TestIssue23()
5660
{
5761
return View();
5862
}
63+
64+
public async Task<ActionResult> WorksOnAsyncMethodsToo()
65+
{
66+
var req = WebRequest.Create("http://baconipsum.com/api/?type=meat-and-filler");
67+
68+
string[] final;
69+
70+
using (var resp = await req.GetResponseAsync())
71+
{
72+
final = JsonConvert.DeserializeObject<string[]>(resp.ToString());
73+
}
74+
75+
return View(final);
76+
}
5977
}
6078
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
@model IEnumerable<string>
2+
3+
4+
<table>
5+
<tr>
6+
<th>Value</th>
7+
</tr>
8+
@foreach (var w in Model)
9+
{
10+
<tr>
11+
<td>@w</td>
12+
</tr>
13+
}
14+
</table>

DevTrends.MvcDonutCaching/MvcDonutCaching.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@
5959
<Reference Include="System.Web" />
6060
<Reference Include="System.Web.Extensions" />
6161
<Reference Include="System.Web.Mvc, Version=3.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
62-
<Private>False</Private>
6362
<HintPath>..\packages\Microsoft.AspNet.Mvc.3.0.50813.1\lib\net40\System.Web.Mvc.dll</HintPath>
63+
<SpecificVersion>False</SpecificVersion>
64+
<Private>False</Private>
6465
</Reference>
6566
<Reference Include="System.Web.Routing" />
6667
<Reference Include="System.Xml.Linq" />

0 commit comments

Comments
 (0)