Browse files

updated cancel async to pass Cancel Token to Web API

  • Loading branch information...
1 parent 9a17b11 commit 9301138f25ae761ef9f663e93daed21f5d133e08 @RickAndMSFT committed Jun 11, 2012
View
2 WebAppAsync/WebAppAsync/GizmosCancelAsync.aspx.cs
@@ -16,7 +16,7 @@ protected void Page_Load(object sender, EventArgs e)
private async Task GetGizmosSvcCancelAsync(CancellationToken cancellationToken)
{
var gizmoService = new GizmoService();
- var gizmoList = await gizmoService.GetGizmosAsync();
+ var gizmoList = await gizmoService.GetGizmosAsync(cancellationToken);
GizmosGridView.DataSource = gizmoList;
GizmosGridView.DataBind();
}
View
1 WebAppAsync/WebAppAsync/Site.Master
@@ -68,6 +68,7 @@
<li><a runat="server" href="~/PWGasync.aspx">PWGasync</a></li>
<li><a runat="server" href="~/PWG.aspx">PWG</a></li>
<li><a runat="server" href="~/GizmosCancelAsync.aspx">GizmosCancelAsync</a></li>
+ <li><a id="A1" runat="server" href="~/GizmosCancelBtnAsync.aspx">GizmosCancelBtnAsync</a></li>
</ul>
<ul id="Ul1">
<li><a runat="server" href="~/Products.aspx">Products</a></li>
View
9 WebAppAsync/WebAppAsync/Site.Master.designer.cs
@@ -31,6 +31,15 @@ public partial class SiteMaster {
protected global::System.Web.UI.WebControls.ContentPlaceHolder HeadContent;
/// <summary>
+ /// A1 control.
+ /// </summary>
+ /// <remarks>
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ /// </remarks>
+ protected global::System.Web.UI.HtmlControls.HtmlAnchor A1;
+
+ /// <summary>
/// FeaturedContent control.
/// </summary>
/// <remarks>

0 comments on commit 9301138

Please sign in to comment.