We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2519228 commit f4b93f0Copy full SHA for f4b93f0
ExampleWebFarm/WebRole.cs
@@ -1,4 +1,5 @@
1
using System.Threading;
2
+using System.Threading.Tasks;
3
using Microsoft.WindowsAzure.ServiceRuntime;
4
5
namespace WebFarm
@@ -19,7 +20,7 @@ public override bool OnStart()
19
20
21
public override void Run()
22
{
- _webFarmRole.Run(new CancellationTokenSource().Token).Wait();
23
+ Task.Run(() => _webFarmRole.Run(new CancellationTokenSource().Token)).Wait();
24
}
25
26
public override void OnStop()
0 commit comments