<?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 : Inherit or Customize BOS Window Service</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Inherit or Customize BOS Window Service</description>
  <pubDate>Wed, 13 May 2026 00:16:50 -700</pubDate>
  <lastBuildDate>Fri, 03 Sep 2010 11:42:03 -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=2107</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>Inherit or Customize BOS Window Service : We have investigated and confirmed...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2107&amp;PID=8348#8348</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> 2107<br /><strong>Posted:</strong> 03-Sep-2010 at 11:42am<br /><br />We have investigated and confirmed that this is a bug.<br><br>We will have it fixed.<br>]]>
   </description>
   <pubDate>Fri, 03 Sep 2010 11:42:03 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2107&amp;PID=8348#8348</guid>
  </item> 
  <item>
   <title>Inherit or Customize BOS Window Service : We&amp;#039;re taking a look at the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2107&amp;PID=8308#8308</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=477" rel="nofollow">ting</a><br /><strong>Subject:</strong> 2107<br /><strong>Posted:</strong> 31-Aug-2010 at 7:22pm<br /><br />We're taking a look at the OnServiceShutdown event for the Window Service BOS and will let you know.<DIV></DIV>]]>
   </description>
   <pubDate>Tue, 31 Aug 2010 19:22:47 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2107&amp;PID=8308#8308</guid>
  </item> 
  <item>
   <title>Inherit or Customize BOS Window Service : Thank Ting for your help.  Now...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2107&amp;PID=8293#8293</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=913" rel="nofollow">yafei</a><br /><strong>Subject:</strong> 2107<br /><strong>Posted:</strong> 31-Aug-2010 at 11:57am<br /><br /><SPAN style="FONT-SIZE: 9pt">Thank Ting for your help.<DIV>&nbsp;</DIV><DIV>Now OnServiceStartup is working when I create the instance of the EntityManager from client side. But I could not find where and when I can trigger the OnServiceShutdown event ? I shutdown the BOS window service, but it didn't trigger the OnServiceShutdown event.</DIV><DIV>&nbsp;</DIV></SPAN>]]>
   </description>
   <pubDate>Tue, 31 Aug 2010 11:57:27 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2107&amp;PID=8293#8293</guid>
  </item> 
  <item>
   <title>Inherit or Customize BOS Window Service : Heh, fix the spelling and capitalization...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2107&amp;PID=8281#8281</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=477" rel="nofollow">ting</a><br /><strong>Subject:</strong> 2107<br /><strong>Posted:</strong> 30-Aug-2010 at 7:40pm<br /><br /><DIV>Heh, fix the spelling and capitalization of&nbsp;the methods and Visual Studio should tell you that you needed to declare them as 'override'.&nbsp; ;)</DIV><DIV>&nbsp;</DIV><DIV>These should be your method declarations:</DIV><DIV>&nbsp;</DIV><DIV>public <strong>override</strong> void OnServiceStart<strong>up</strong>(object sender, ServiceStartupEventArgs e)<BR>public <strong>override</strong> void On<strong>Service</strong>Shutdown(object sender, EventArgs e)</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 30 Aug 2010 19:40:01 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2107&amp;PID=8281#8281</guid>
  </item> 
  <item>
   <title>Inherit or Customize BOS Window Service : It looks that I can use public...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2107&amp;PID=8279#8279</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=913" rel="nofollow">yafei</a><br /><strong>Subject:</strong> 2107<br /><strong>Posted:</strong> 30-Aug-2010 at 5:28pm<br /><br />It looks that I can use <SPAN style="COLOR: #0000ff">public</SPAN> <SPAN style="COLOR: #0000ff">virtual</SPAN> <SPAN style="COLOR: #0000ff">void</SPAN> OnServiceStartup(<SPAN style="COLOR: #0000ff">object</SPAN> sender, <SPAN style="COLOR: #008080">ServiceStartupEventArgs</SPAN> e) to implement one of them. I have made a prototype, but it is not working.&nbsp; I have created a assembly which contain a class below and put this assembly with other BOS assemblies the same place. Do I miss anything ?<DIV></DIV><DIV>&nbsp;</DIV><DIV>using System;<BR>using System.Collections.Generic;<BR>using System.Linq;<BR>using System.Text;<BR>using IdeaBlade.EntityModel;<BR>using System.IO;</DIV><DIV>namespace DomainModel<BR>{<BR>&nbsp;&nbsp;&nbsp; public class ServiceApp : EntityServiceApplication<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public void OnServiceStartUp(object sender, ServiceStartupEventArgs e)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string LogFile = "logFile.txt";<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LogMessage("Service Starting up ...", LogFile);</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; base.OnServiceStartup(sender, e);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public void OnServceShutdown(object sender, EventArgs e)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string LogFile = "logFile.txt";<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LogMessage("Service Shuting Down ...", LogFile);</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; base.OnServiceShutdown(sender, e);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public static void LogMessage(String strLogMe, string logfile)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // if (IsLogOn)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FileStream fs = new FileStream(logfile, FileMode.OpenOrCreate, FileAccess.Write);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; StreamWriter m_streamWriter = new StreamWriter(fs);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_streamWriter.BaseStream.Seek(0, SeekOrigin.End);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_streamWriter.WriteLine(DateTime.UtcNow.ToString() + " : " + strLogMe);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_streamWriter.Flush();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_streamWriter.Close();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //}</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; }<BR>}</DIV>]]>
   </description>
   <pubDate>Mon, 30 Aug 2010 17:28:05 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2107&amp;PID=8279#8279</guid>
  </item> 
  <item>
   <title>Inherit or Customize BOS Window Service : I host BOS as a window service...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2107&amp;PID=8273#8273</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=913" rel="nofollow">yafei</a><br /><strong>Subject:</strong> 2107<br /><strong>Posted:</strong> 30-Aug-2010 at 12:29pm<br /><br /><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Calibri','sans-serif'; FONT-SIZE: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: SimSun; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-: EN-US; mso-fareast-: ZH-CN; mso-bidi-: AR-SA">I host BOS as a window service in the middle-tier. However, I want to add some business logics when the BOS Window Service is OnStart, OnStop, OnPause, OnShutDown, OnContinue, etc.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>Is there any solutions? </SPAN></P>]]>
   </description>
   <pubDate>Mon, 30 Aug 2010 12:29:00 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2107&amp;PID=8273#8273</guid>
  </item> 
 </channel>
</rss>