<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Is there a way to cancel Editor.RequestShapeAsync? in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/is-there-a-way-to-cancel-editor-requestshapeasync/m-p/320207#M3780</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashley,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check if the Editor is active and if yes you can use Cancel.Execute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (MyMapView.Editor.IsActive)&lt;/P&gt;&lt;P&gt;&amp;nbsp; MyMapView.Editor.Cancel.Execute(null);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Asser&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Apr 2015 21:20:29 GMT</pubDate>
    <dc:creator>AsserSwelam1</dc:creator>
    <dc:date>2015-04-03T21:20:29Z</dc:date>
    <item>
      <title>Is there a way to cancel Editor.RequestShapeAsync?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/is-there-a-way-to-cancel-editor-requestshapeasync/m-p/320206#M3779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any way to gracefully cancel the RequestShapeAsync task?&amp;nbsp; I do not have much experience with using the C# async capabilities, but it seems the awaitable method needs to accept a cancellation token and this method does not appear to accept one.&amp;nbsp; Is there any other way to cancel this method gracefully?&amp;nbsp; For example, if&lt;SPAN style="line-height: 1.5;"&gt; a user is in the middle of drawing a polygon does not want to finish it, I need a way to cancel this task by clicking a cancel button.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 21:06:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/is-there-a-way-to-cancel-editor-requestshapeasync/m-p/320206#M3779</guid>
      <dc:creator>AshleyDePottey</dc:creator>
      <dc:date>2015-04-03T21:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to cancel Editor.RequestShapeAsync?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/is-there-a-way-to-cancel-editor-requestshapeasync/m-p/320207#M3780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashley,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check if the Editor is active and if yes you can use Cancel.Execute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (MyMapView.Editor.IsActive)&lt;/P&gt;&lt;P&gt;&amp;nbsp; MyMapView.Editor.Cancel.Execute(null);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Asser&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 21:20:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/is-there-a-way-to-cancel-editor-requestshapeasync/m-p/320207#M3780</guid>
      <dc:creator>AsserSwelam1</dc:creator>
      <dc:date>2015-04-03T21:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to cancel Editor.RequestShapeAsync?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/is-there-a-way-to-cancel-editor-requestshapeasync/m-p/320208#M3781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Asser!&amp;nbsp; That worked perfectly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 21:38:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/is-there-a-way-to-cancel-editor-requestshapeasync/m-p/320208#M3781</guid>
      <dc:creator>AshleyDePottey</dc:creator>
      <dc:date>2015-04-03T21:38:36Z</dc:date>
    </item>
  </channel>
</rss>

