<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Notification service won&#039;t unsubscribe</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Notification service won&#039;t unsubscribe</description>
  <pubDate>Wed, 13 May 2026 08:02:27 -700</pubDate>
  <lastBuildDate>Thu, 22 Mar 2012 14:07:57 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=3268</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Notification service won&#039;t unsubscribe :   This seems to be a issue that...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3268&amp;PID=13067#13067</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1402" rel="nofollow">mitchell_bu</a><br /><strong>Subject:</strong> 3268<br /><strong>Posted:</strong> 22-Mar-2012 at 2:07pm<br /><br />This seems to be a issue that refuses to die&nbsp;for us...<div>&nbsp;</div><div>We upgraded to 6.1.6.0 and it fixed our initial&nbsp;issue.&nbsp; It seemed that originally, when the browser was closed, the client was still holding onto a reference to the subscription, which wasn't allowing the process to release it's resources.&nbsp; DevForce acknowledged this was a bug (Fixed a problem where the browser process would not terminate if a Silverlight application had an outstanding subscription to a Push service. &#091;D1987&#093;) and fixed it for 6.1.6.0.</div><div>&nbsp;</div><div>However, even though the browser process now terminates, the service appears to never be notified that the client has closed and continues to run.&nbsp; This is problematic for us because the service assumes the information it sends is being received and updates the database that the data has been sent to the client.&nbsp; We could rearrange the code and have the client update the DB once it receives the notification, but I feel this is just putting on a bandaid as we will still have multiple instances of the service running, and will continue to run after the client closes.</div><div>&nbsp;</div><div>I have tried&nbsp;handling the Application.Exit&nbsp;event and adding code to unsubscribe from all existing subscriptions just like pponzano, but haven't had any luck in it actually working.</div>]]>
   </description>
   <pubDate>Thu, 22 Mar 2012 14:07:57 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3268&amp;PID=13067#13067</guid>
  </item> 
  <item>
   <title>Notification service won&#039;t unsubscribe :   Hello mitchel_bu, I&amp;#039;ve...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3268&amp;PID=12752#12752</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1136" rel="nofollow">pponzano</a><br /><strong>Subject:</strong> 3268<br /><strong>Posted:</strong> 23-Feb-2012 at 8:01am<br /><br />Hello mitchel_bu, I've not upgraded to .5.1 but I've noticed that the subscribe is removed when I close the client, and there're one,two times (I think it's due to the fact it takes a little time to unsubscribe), I'll test in next days and let you know ]]>
   </description>
   <pubDate>Thu, 23 Feb 2012 08:01:31 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3268&amp;PID=12752#12752</guid>
  </item> 
  <item>
   <title>Notification service won&#039;t unsubscribe :   pponzano, did upgrading to...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3268&amp;PID=12751#12751</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1402" rel="nofollow">mitchell_bu</a><br /><strong>Subject:</strong> 3268<br /><strong>Posted:</strong> 23-Feb-2012 at 7:37am<br /><br /><div>pponzano, did upgrading to 6.1.5.1 fix your problem?&nbsp; I have a Silerlight application with 6.1.4.0 and am&nbsp;having a similar issue.&nbsp; It only surfaced when using the Silverlight 5 runtime.&nbsp; When the application is closed, the notification service subscription remains active even though we explicitly unsubscribe in the Application.Exit event.&nbsp; This results in the&nbsp;browser&nbsp;process (IE, firefox,etc) to never release its resources.</div><span id="userPro12677" ="msgSidePro" title="View Drop Down" ="showDropDown'userPro12677', 'proMenu12677', 160, 0;"></span>]]>
   </description>
   <pubDate>Thu, 23 Feb 2012 07:37:32 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3268&amp;PID=12751#12751</guid>
  </item> 
  <item>
   <title>Notification service won&#039;t unsubscribe :   Paolo,DevForce 6.1.5.1 is...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3268&amp;PID=12692#12692</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 3268<br /><strong>Posted:</strong> 17-Feb-2012 at 10:56am<br /><br />Paolo,<div></div>DevForce 6.1.5.1 is the latest varsion availble. You will be able to download it in our <a href="http://www.ideablade.com/download-portal" target="_blank">Customer Portal</a>.<div>&nbsp;</div><div>Silvio.</div>]]>
   </description>
   <pubDate>Fri, 17 Feb 2012 10:56:37 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3268&amp;PID=12692#12692</guid>
  </item> 
  <item>
   <title>Notification service won&#039;t unsubscribe :   Hello Silvio..... I&amp;#039;ve...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3268&amp;PID=12689#12689</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1136" rel="nofollow">pponzano</a><br /><strong>Subject:</strong> 3268<br /><strong>Posted:</strong> 16-Feb-2012 at 11:30pm<br /><br />Hello Silvio..... I've not found the DevForce 6.1.5.1 from the avaiable downloads.. where can I download it?<div>I'll check the logs and the GetSubScribers(....) </div><div>Let you know thanks</div>]]>
   </description>
   <pubDate>Thu, 16 Feb 2012 23:30:28 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3268&amp;PID=12689#12689</guid>
  </item> 
  <item>
   <title>Notification service won&#039;t unsubscribe :   Hi Paolo,I was not able to...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3268&amp;PID=12685#12685</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 3268<br /><strong>Posted:</strong> 16-Feb-2012 at 4:39pm<br /><br />Hi Paolo,<div>&nbsp;</div><div>I was not able to reproduce the issue here. </div><div>I have tested using DevForce 6.1.5.1. What version of DevForce are you using?</div><div>&nbsp;</div><div>I did some testing with our WPF Push Notification&nbsp;sample and here's the outcome:</div><div>&nbsp;</div><div>Once a client calls CancelCallback, the server should register in its DebugLog:</div><div><em>IdeaBlade.EntityModel.Server.NotificationServiceManager:UnregisterUser - User unregistered from _Service Name_</em></div><div>&nbsp;</div><div>Once all clients subscribing to the notification service unsubscribe to it, the server will stop the notification service:</div><div><em>IdeaBlade.EntityModel.Server.NotificationThreadHelper:StopThread - Stopping thread for _Service Name_<br>IdeaBlade.EntityModel.Server.NotificationServiceManager:NotificationThreadCompleted - Server method completed: _Service Name_<br></em></div><div>I also verified that if the user closes the client app without unsubscribing to the service, the server will eventually remove the subscriber after a timeout: (1 min default)</div><div><em>IdeaBlade.EntityModel.Server.NotificationServiceManager:AsyncNotify - Removing subscriber after error The message could not be transferred within the allotted timeout of 00:01:00. There was no space available in the reliable channel's transfer window. The time allotted to this operation may have been a portion of a longer timeout.</em></div><div>&nbsp;</div><div>&nbsp;</div><div>As for not unsubscribing upon calling CancelCallback, it can only think of not having the right token. Could you verify that the token is accurate?</div><div>Also, could you ensure there are no other subscribers to the notification service? (<font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas">notificationManager.GetSubscribers(serviceKey).Count()</font></font>)</div><div>&nbsp;</div><div>Regards,</div><div>&nbsp;&nbsp; Silvio.</div>]]>
   </description>
   <pubDate>Thu, 16 Feb 2012 16:39:58 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3268&amp;PID=12685#12685</guid>
  </item> 
  <item>
   <title>Notification service won&#039;t unsubscribe : Hello,I&amp;#039;ve started looking...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3268&amp;PID=12677#12677</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1136" rel="nofollow">pponzano</a><br /><strong>Subject:</strong> 3268<br /><strong>Posted:</strong> 16-Feb-2012 at 7:08am<br /><br />Hello,<br>I've started looking with fiddler the traffic I've with my WPF application... I've noticed then when I close the application but don't stop the server (what it normally should be in a real production server) I have the NotificationService that continues to send message even if I've called the&nbsp; Manager.CancelCallback...<br><br>my code is :<br><br>Repository :<br><br><div style="font-family: C&#111;nsolas; font-size: 10pt; color: black; : white;"><p style="margin: 0px;"><span style="color: blue;">public</span> <span style="color: blue;">void</span> RegisterCallBack(<span style="color: blue;">string</span> serviceTypeName, <span style="color: blue;">string</span> serviceMethodName, <span style="color: #2b91af;">Action</span>&lt;<span style="color: #2b91af;">SubscriptionOperation</span>&gt; callback, <span style="color: blue;">object</span> userToken, <span style="color: blue;">params</span> <span style="color: blue;">object</span>&#091;&#093; clientArgs)</p><p style="margin: 0px;">&nbsp;&nbsp; {</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; <span style="color: blue;">try</span></p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; {</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; Manager.RegisterCallback(serviceTypeName, serviceMethodName, callback, userToken, clientArgs);</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; }</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; <span style="color: blue;">catch</span> (<span style="color: #2b91af;">Exception</span> ex)</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; {</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; <span style="color: green;">//todo : add logging</span></p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; }</p><p style="margin: 0px;">&nbsp;&nbsp; }</p><p style="margin: 0px;">&nbsp;</p><p style="margin: 0px;">&nbsp;&nbsp; <span style="color: blue;">public</span> <span style="color: blue;">void</span> CancelCallBack(<span style="color: blue;">object</span> userToken)</p><p style="margin: 0px;">&nbsp;&nbsp; {</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; <span style="color: blue;">try</span></p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; {</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; Manager.CancelCallback(userToken);</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; }</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; <span style="color: blue;">catch</span> (<span style="color: #2b91af;">Exception</span> ex)</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; {</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; <span style="color: green;">//todo : add logging</span></p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; }</p><p style="margin: 0px;">&nbsp;&nbsp; }</p></div><br>(no exception are thrown BTW)<br><br>on the BootStrapper : <br><br>&nbsp;&nbsp;&nbsp;&nbsp; protected override void OnExit(object sender, EventArgs e)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; base.OnExit(sender, e);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (repository != null)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; repository.CancelCallBack(UserMessagesViewModel.NOTIFICATION_TOKEN);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br><br>In my UserMessageViewModel I subcribe as<br><br><div style="font-family: C&#111;nsolas; font-size: 10pt; color: black; : white;"><p style="margin: 0px;"><span style="color: blue;">private</span> <span style="color: blue;">void</span> SubscribeNotification()</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; {</p><p style="margin: 0px;">&nbsp;</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="color: blue;">if</span> (isSubscribed)</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; repository.CancelCallBack(NOTIFICATION_TOKEN);</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }</p><p style="margin: 0px;">&nbsp;</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="color: blue;">var</span> objArray = <span style="color: blue;">new</span> <span style="color: blue;">object</span>&#091;&#093; { repository.GetLoggedUser(), FilterAncheVisti };</p><p style="margin: 0px;">&nbsp;</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; repository.RegisterCallBack(NOTIFICATION_SERVICE_PATH, NOTIFICATION_SERVICE_METHOD, UserMessagePushCallback, NOTIFICATION_TOKEN, objArray);</p><p style="margin: 0px;">&nbsp;</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; isSubscribed = <span style="color: blue;">true</span>;</p><p style="margin: 0px;">&nbsp;</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; }</p></div><br>What can I do wrong?<br><br><br>]]>
   </description>
   <pubDate>Thu, 16 Feb 2012 07:08:56 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3268&amp;PID=12677#12677</guid>
  </item> 
 </channel>
</rss>