<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>Simple State Machine</title><link>http://simplestatemachine.codeplex.com/project/feeds/rss</link><description>A simple state machine implementation written to replace WF in one of our projects. The interesting aspect of this library is that it comes with a DSL written in boo for quick and easy configuration and management of state machine definitions.</description><item><title>Source code checked in, #80132</title><link>http://simplestatemachine.codeplex.com/SourceControl/changeset/changes/80132</link><description>Upgrade&amp;#58; New Version of LabDefaultTemplate.xaml. To upgrade your build definitions, please visit the following link&amp;#58; http&amp;#58;&amp;#47;&amp;#47;go.microsoft.com&amp;#47;fwlink&amp;#47;&amp;#63;LinkId&amp;#61;254563</description><author>Project Collection Service Accounts</author><pubDate>Mon, 01 Oct 2012 21:49:39 GMT</pubDate><guid isPermaLink="false">Source code checked in, #80132 20121001094939P</guid></item><item><title>Source code checked in, #80131</title><link>http://simplestatemachine.codeplex.com/SourceControl/changeset/changes/80131</link><description>Checked in by server upgrade</description><author>Project Collection Service Accounts</author><pubDate>Mon, 01 Oct 2012 21:43:10 GMT</pubDate><guid isPermaLink="false">Source code checked in, #80131 20121001094310P</guid></item><item><title>New Post: yet another simple state machine...</title><link>http://simplestatemachine.codeplex.com/discussions/274802</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Cool stuff by the way, I love boo and it's dsl capabilities. I just got done with a first go at implementing the same state machine dsl in a grammar I have been working on in case you were interested:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://metasharp.codeplex.com/SourceControl/changeset/view/a2ccc29b7ad0#sdk%2fsamples%2fStateMachine%2fStateMachine%2fStateMachineParser.g"&gt;http://metasharp.codeplex.com/SourceControl/changeset/view/a2ccc29b7ad0#sdk%2fsamples%2fStateMachine%2fStateMachine%2fStateMachineParser.g&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Not quite 2 files as the commenter on your Home page suggested but pretty slim. I think that Fowlers state machine dsl should end up becoming the standard first DSL for new DSL developers :)&lt;/p&gt;
&lt;/div&gt;</description><author>justinc</author><pubDate>Wed, 05 Oct 2011 06:24:30 GMT</pubDate><guid isPermaLink="false">New Post: yet another simple state machine... 20111005062430A</guid></item><item><title>New Post: Cannot seem to create transition actions</title><link>http://simplestatemachine.codeplex.com/Thread/View.aspx?ThreadId=229792</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I am using this statemachine with code only and not using the boo dsl&lt;/p&gt;
&lt;p&gt;I want to assosiate actions with transitions like you can in the uml and not just call backs for state entry/exit.&lt;/p&gt;
&lt;p&gt;However, when I create a transition action thus:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; object[] o;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; o = new object[1];&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; o[0] = &amp;quot;PosSetSensor&amp;quot;;&lt;/p&gt;
&lt;p&gt;&lt;br&gt;&amp;nbsp;m.AddNewTransitionAction(&amp;quot;test&amp;quot;, StateTransitionPhase.All, o); // where m is my state machine&lt;/p&gt;
&lt;p&gt;&amp;nbsp;when I create a sm context from m and start it, I find it attempts to execute an action, but finds that &amp;quot;test&amp;quot; is not present in _availableTasks in the tasks factory, the only task available appears to have a name more like a task type.&amp;nbsp; it is something like &amp;quot;invoke method&amp;quot;.&lt;/p&gt;
&lt;p&gt;Is there any documentation that will help me map the creation many common uml elements such as a transition action, to the appropriate object constructions and method calls because I am not finding the method names intuitive.&lt;/p&gt;
&lt;p&gt;I really appreciate any help or advice you are able to give.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Andrew&lt;/p&gt;&lt;/div&gt;</description><author>hardya</author><pubDate>Wed, 06 Oct 2010 12:11:51 GMT</pubDate><guid isPermaLink="false">New Post: Cannot seem to create transition actions 20101006121151P</guid></item><item><title>New Post: Memory Leak/Management Issue with SSM?</title><link>http://simplestatemachine.codeplex.com/Thread/View.aspx?ThreadId=227929</link><description>&lt;div style="line-height: normal;"&gt;PGh0bWw+PGJvZHkgYmdjb2xvcj0iI0ZGRkZGRiI+PGRpdj5JJ20gc29ycnkgSSBkb24ndCBrbm93
IHdoeSB0aGF0IHdvdWxkIGJlLiBZb3UgbWlnaHQgc2VlIGlmIG9iamVjdHMgeW91IGFyZSB1c2lu
ZyBhcmUgZGlzcG9zYWJsZS4mbmJzcDs8YnI+PGJyPlRoYW5rcyw8ZGl2PjxiciBjbGFzcz0id2Vi
a2l0LWJsb2NrLXBsYWNlaG9sZGVyIj48L2Rpdj48ZGl2Pk5hdGhhbiBTdHVsdHM8L2Rpdj48L2Rp
dj48ZGl2Pjxicj5PbiBTZXAgMjAsIDIwMTAsIGF0IDc6NTIgUE0sICJac29sdDIiICZsdDs8YSBo
cmVmPSJtYWlsdG86bm90aWZpY2F0aW9uc0Bjb2RlcGxleC5jb20iPm5vdGlmaWNhdGlvbnNAY29k
ZXBsZXguY29tPC9hPiZndDsgd3JvdGU6PGJyPjxicj48L2Rpdj48ZGl2PjxzcGFuPjwvc3Bhbj48
L2Rpdj48YmxvY2txdW90ZSB0eXBlPSJjaXRlIj48ZGl2PiA8c3R5bGU+Qm9keXtmb250LWZhbWls
eTogVmVyZGFuYTsgZm9udC1zaXplOiAwLjc1ZW07fSNUaHJlYWROb3RpZmljYXRpb25Gb290ZXJ7
Y29sb3I6IGdyYXk7IGJvcmRlci10b3A6IDFweCBzb2xpZCAjY2NjO30jVGhyZWFkTm90aWZpY2F0
aW9uUG9zdEJvZHl7TWFyZ2luLUJvdHRvbTogMmVtO308L3N0eWxlPjxwPkZyb206IFpz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T4uPC9wPiA8cD5QbGVhc2Ugbm90ZTogSW1hZ2VzIGFuZCBhdHRhY2htZW50cyB3aWxs
IGJlIHJlbW92ZWQgZnJvbSBlbWFpbHMuIEFueSBwb3N0cyB0byB0aGlzIGRpc2N1c3Npb24gd2ls
bCBhbHNvIGJlIGF2YWlsYWJsZSBvbmxpbmUgYXQgPGEgaHJlZj0iaHR0cDovL2NvZGVwbGV4LmNv
bSI+PGEgaHJlZj0iaHR0cDovL2NvZGVwbGV4LmNvbSI+Y29kZXBsZXguY29tPC9hPjwvYT48L3A+
IDwvZGl2PiAgPC9kaXY+PC9ibG9ja3F1b3RlPjwvYm9keT48L2h0bWw+
--Apple-Mail-41--357490179--&lt;/div&gt;</description><author>PlasticLIzard</author><pubDate>Tue, 21 Sep 2010 03:30:50 GMT</pubDate><guid isPermaLink="false">New Post: Memory Leak/Management Issue with SSM? 20100921033050A</guid></item><item><title>New Post: Memory Leak/Management Issue with SSM?</title><link>http://simplestatemachine.codeplex.com/Thread/View.aspx?ThreadId=227929</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;First of all, thanks for making this library &amp;quot;free&amp;quot;.&lt;/p&gt;
&lt;p&gt;I need to create a number of SimpleStateMachine (1000+) instances in my application and then delete those.&lt;/p&gt;
&lt;p&gt;Even though I de-reference the SimpleStateMachine instances, the StateMachineDSLEngine objects do not get garbage collected. There are exactly as many of them as StateMachines was created before. Among others, the size of a&amp;nbsp; Dictionary &amp;lt;Type DslEngine&amp;gt; is also increasing...&lt;/p&gt;
&lt;p&gt;Any hints what goes wrong?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br&gt;Zsolt&lt;/p&gt;&lt;/div&gt;</description><author>Zsolt2</author><pubDate>Tue, 21 Sep 2010 02:52:46 GMT</pubDate><guid isPermaLink="false">New Post: Memory Leak/Management Issue with SSM? 20100921025246A</guid></item><item><title>New Post: Conditional State Transitions</title><link>http://simplestatemachine.codeplex.com/Thread/View.aspx?ThreadId=39861</link><description>&lt;div style="line-height: normal;"&gt;I've more or less moved my attention to Ruby development now. Aalthough we still use SSM in production in our .NET products, we aren't evolving it, and in fact we're in the process of porting our SSM state machines into Ruby. I would, however, be happy to apply a patch. Alternatively, with IronRuby being more or less ready for prime time, you might consider combining IronRuby with a Ruby state machine library such as AASM, state_machine or workflow (see github) to gain the flexible, DSL based syntax characteristic of Ruby and the deep .NET integration of IronRuby.&lt;/div&gt;</description><author>PlasticLizard</author><pubDate>Thu, 19 Aug 2010 21:58:43 GMT</pubDate><guid isPermaLink="false">New Post: Conditional State Transitions 20100819095843P</guid></item><item><title>New Post: Conditional State Transitions</title><link>http://simplestatemachine.codeplex.com/Thread/View.aspx?ThreadId=39861</link><description>&lt;div style="line-height: normal;"&gt;Any solution to this case yet? It would make things a lot easier&lt;/div&gt;</description><author>johano</author><pubDate>Thu, 19 Aug 2010 19:36:55 GMT</pubDate><guid isPermaLink="false">New Post: Conditional State Transitions 20100819073655P</guid></item><item><title>Source code checked in, #55373</title><link>http://simplestatemachine.codeplex.com/SourceControl/changeset/changes/55373</link><description>Checked in by server upgrade</description><author>_TFSSERVICE</author><pubDate>Mon, 02 Aug 2010 22:49:34 GMT</pubDate><guid isPermaLink="false">Source code checked in, #55373 20100802104934P</guid></item><item><title>New Post: This just works for me</title><link>http://simplestatemachine.codeplex.com/Thread/View.aspx?ThreadId=217479</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Yes, it is rather easy to convert a SimpleStateMachine to Graphviz's DOT langauge. The result usually looks good enough. I use SVG output and then convert it to PNG with ImageMagick. Unfortunately the conversion takes awfull long, aprox. one second. This is a problem, because the state transitions are displayed as they occur on the fly and 1 sec latency is noticable. Does anyone know a fast .NET SVG to png rendering engine? For graphviz, instead of runing it as a new process, I'd recommend to load the neccessary functions with PInvoke to speed things up... ...you get the SVG output damn fast....&lt;/p&gt;
&lt;p style="padding-left:30px"&gt;By the way, there was a question earlier regarding to &amp;quot;Parallel Proccess&amp;quot;.&lt;/p&gt;
&lt;p&gt;&amp;quot;Instead you may want to have a single state, AwaitingDocumentResults, and this state can either host an inner state machine for each document, or can handle waiting for the responses in application logic. In the end, I think the state machine library should probably be given the ability to manage multiple child states automatically, but it will take care not to drift into re-creating WF and building a sequential workflow library into the state machine library, where it doesn't belong. &amp;quot;&lt;/p&gt;
&lt;p style="padding-left:30px"&gt;&amp;nbsp;I don't quite understand how this would work in practice. To get around the very same issue, I use a custom task to transfer events from one state machine to an other. Typically the state machines run in separate processes and .NET remoting takes care of passing the events. The issue is, that defining how the 'independent' state machines interract eachother gets a bit complicated in the .boo file.&lt;/p&gt;&lt;/div&gt;</description><author>Zsolt2</author><pubDate>Tue, 29 Jun 2010 17:17:43 GMT</pubDate><guid isPermaLink="false">New Post: This just works for me 20100629051743P</guid></item><item><title>New Post: This just works for me</title><link>http://simplestatemachine.codeplex.com/Thread/View.aspx?ThreadId=217479</link><description>&lt;div style="line-height: normal;"&gt;I'm pleased to hear that! Is graphviz easy to use for such tasks? That's something I would like to play with myself.&lt;/div&gt;</description><author>PlasticLizard</author><pubDate>Tue, 29 Jun 2010 15:51:50 GMT</pubDate><guid isPermaLink="false">New Post: This just works for me 20100629035150P</guid></item><item><title>New Post: This just works for me</title><link>http://simplestatemachine.codeplex.com/Thread/View.aspx?ThreadId=217479</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am using SimpleStateMachine for my project and it just works for me. I use &amp;quot;graphviz&amp;quot; to visualize the state machine and custom tasks to carry out actions.&lt;/p&gt;
&lt;p&gt;Thanks for providing this stuff for us.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Zs&lt;/p&gt;&lt;/div&gt;</description><author>Zsolt2</author><pubDate>Sun, 27 Jun 2010 13:24:25 GMT</pubDate><guid isPermaLink="false">New Post: This just works for me 20100627012425P</guid></item><item><title>New Post: Timed Events</title><link>http://simplestatemachine.codeplex.com/Thread/View.aspx?ThreadId=67148</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;For the timer, you would need some kind of a long running process to manage the timers, so you probably will need to implement that in whatever process is hosting your workflow and have the timer handler load your workflow and fire an event, TimeoutExpired or something. You could also do something sneaky using the .NET web cache (which is availble in all apps, not just ASP.NET apps)&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.codeproject.com/KB/aspnet/ASPNETService.aspx"&gt;http://www.codeproject.com/KB/aspnet/ASPNETService.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I think I would also impelment the rule based logic srrounding the pin validation in a context or business object that provides context and events to the state machine. This particular state machine library is intended only to manage events and transitions, and leaves actually managing the state (how many times a user has failed with their pin) to the underlying business or context objects. I have considered having expression based conditional rules that can prevent or allow state transitions, but I haven't found the time to build that in. In the mean time, you can place such logic around event firing code in your business logic.&lt;/p&gt;&lt;/div&gt;</description><author>PlasticLizard</author><pubDate>Tue, 01 Sep 2009 15:59:02 GMT</pubDate><guid isPermaLink="false">New Post: Timed Events 20090901035902P</guid></item><item><title>New Post: Timed Events</title><link>http://simplestatemachine.codeplex.com/Thread/View.aspx?ThreadId=67148</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;What would be the best way to have a timed based trigger. An example of what I mean is:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Imaging the scenario of a Call management workflow&lt;/p&gt;
&lt;p&gt;After the call ages to being 24 hours old, its state should transition to an urgent state&lt;/p&gt;
&lt;p&gt;A second question I have is whether or not you could have a transition being conditional upon a variable. An example of what I mean is:&lt;/p&gt;
&lt;p&gt;Enter PIN, Validate.....if ok continue, else report invalid pin. If pin invalid 3 times, lock account.&lt;/p&gt;
&lt;p&gt;Any ideas on both of these?&lt;/p&gt;&lt;/div&gt;</description><author>myersd</author><pubDate>Thu, 27 Aug 2009 08:17:38 GMT</pubDate><guid isPermaLink="false">New Post: Timed Events 20090827081738A</guid></item><item><title>New Post: Parallel Process</title><link>http://simplestatemachine.codeplex.com/Thread/View.aspx?ThreadId=54829</link><description>&lt;div style="line-height: normal;"&gt;That's a tough one. If you were using a sequential workflow, this would be a no brainer, you'd do a branch and join. We also have this need in our process flows, and I haven't settled on the right answer yet. Our workaround has been to handle it at a higher level, but I'm not terribly happy with our workaround, so I won't bother explaining it. Of your two options, I don't think I'd start creating states that represent combinations of other states, that sounds like a slipper slope. Instead you may want to have a single state, AwaitingDocumentResults, and this state can either host an inner state machine for each document, or can handle waiting for the responses in application logic. In the end, I think the state machine library should probably be given the ability to manage multiple child states automatically, but it will take care not to drift into re-creating WF and building a sequential workflow library into the state machine library, where it doesn't belong. Probably not a hugely helpful answer, but it's all I've got :)&lt;/div&gt;</description><author>PlasticLizard</author><pubDate>Thu, 30 Apr 2009 18:30:12 GMT</pubDate><guid isPermaLink="false">New Post: Parallel Process 20090430063012P</guid></item><item><title>New Post: Parallel Process</title><link>http://simplestatemachine.codeplex.com/Thread/View.aspx?ThreadId=54829</link><description>&lt;div style="line-height: normal;"&gt;I have a system that use a single column for case status. SimpleStateMachine state drives the value of this case status. So right now I have a design dillema.&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I have a situation where I need to start two things at the same time. Say that the current state is DocumentsPending. Now I have to send two types of different documetns, which normal will move the state to DistrictLetterDocumentPrinted and ApprovalLetterDocumentPrinted. The next step of each of these statuses are DistrictDocumentWaitForResult and ApprovalLetterlDocumentWaitForResult.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Essentially I am sending two categories of documents to separate institution and I am waitng for both of their results to arrive before I move forward and I want the ability to check where the status of the case are at any given time.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Now should I add an additional case status column so that i can store both DistrictLetterDocumentPrinted and ApprovalLetterDocumentPrinted or should I create a third combination status which says &amp;quot;DOAndApprLetterPrinted&amp;quot; which adds 2/3 additional statuses for each combination but enable me to use just a single column.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;</description><author>nirataro</author><pubDate>Wed, 29 Apr 2009 13:13:57 GMT</pubDate><guid isPermaLink="false">New Post: Parallel Process 20090429011357P</guid></item><item><title>New Post: Injecting dependencies into Tasks</title><link>http://simplestatemachine.codeplex.com/Thread/View.aspx?ThreadId=28812</link><description>&lt;div style="line-height: normal;"&gt;hi nirataro,&lt;br&gt;
&lt;br&gt;
first you need to define your implementation of IObjectBuilder. I have defined mine as below:&lt;br&gt;
&lt;blockquote&gt;public class WindsorObjectBuilder : IObjectBuilder&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private readonly IWindsorContainer _container;&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public WindsorObjectBuilder(IWindsorContainer container) &lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _container = container;&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public T Create&amp;lt;T&amp;gt;() where T : class&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return _container.Resolve&amp;lt;T&amp;gt;();&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public T Create&amp;lt;T&amp;gt;(Type type) where T : class&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return _container.Resolve&amp;lt;T&amp;gt;();&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;
&lt;/blockquote&gt;then register it as suggested by plastic lizard: &lt;blockquote&gt;ServiceLocator.RegisterService&amp;lt;IObjectBuilder&amp;gt;(new WindsorObjectBuilder(windsorContainer));&lt;/blockquote&gt;
&lt;/div&gt;</description><author>k03123</author><pubDate>Tue, 24 Mar 2009 00:17:22 GMT</pubDate><guid isPermaLink="false">New Post: Injecting dependencies into Tasks 20090324121722A</guid></item><item><title>New Post: Injecting dependencies into Tasks</title><link>http://simplestatemachine.codeplex.com/Thread/View.aspx?ThreadId=28812</link><description>&lt;div style="line-height: normal;"&gt;Is there any example to do accomplish these tasks? Sorry, I'm lost with all the DI techniques being described here.&lt;/div&gt;</description><author>nirataro</author><pubDate>Sun, 22 Mar 2009 08:53:57 GMT</pubDate><guid isPermaLink="false">New Post: Injecting dependencies into Tasks 20090322085357A</guid></item><item><title>Created Issue: Replace existing IoC integration w/MS Service Locater</title><link>http://simplestatemachine.codeplex.com/WorkItem/View.aspx?WorkItemId=3310</link><description>Use service locater library for universal IoC support&lt;br /&gt;</description><author>PlasticLIzard</author><pubDate>Wed, 04 Mar 2009 16:42:10 GMT</pubDate><guid isPermaLink="false">Created Issue: Replace existing IoC integration w/MS Service Locater 20090304044210P</guid></item><item><title>New Post: Injecting dependencies into Tasks</title><link>http://simplestatemachine.codeplex.com/Thread/View.aspx?ThreadId=28812</link><description>&lt;div style="line-height: normal;"&gt;We do use the CommonServiceLocator. The recent release of Prism 2.0 also uses it, as well as the Caliburn beta. But yes, still asking out of curiosity.&lt;br&gt;
&lt;/div&gt;</description><author>katokay</author><pubDate>Sun, 01 Mar 2009 23:33:07 GMT</pubDate><guid isPermaLink="false">New Post: Injecting dependencies into Tasks 20090301113307P</guid></item></channel></rss>