title: Castle Windsor: Will my transient component be garbage collected?
body: <p>Using Castle Windsor, I have a component configured with the transient lifestyle:</p>
  
  <pre><code>&lt;component id="publish.mapping.default"
                     service="IMyService, MyAssembly"
                     type="MyServiceImplementation, Myassembly" 
                     lifestyle="transient" /&gt;
  </code></pre>
  
  <p>Which will be used like this:</p>
  
  <pre><code>var service = container.Resolve&lt;IMyService&gt;(componentId);
  // service usage ....
  // service goes out of scope ... 
  </code></pre>
  
  <p>My question is, will the service instance be garbage collected after it goes out of scope, or will Castle Windsor hold on to a reference ? I found <a href="https://stackoverflow.com/questions/132940/why-does-castle-windsor-hold-onto-transient-objects">this similar question</a>, that implies that the latter might be the case - but after examining the links posted there, I am unsure whether the discussion is about holding on to the reference, or about ensuring that the object are disposed if it implements IDisposable. My objects does not need to be disposed.</p>
  
  <p>If Castle Windsor holds on to the instance, is there any easy way to prevent this (perhaps by configuration) ?</p>
  
  <p><strong>EDIT</strong><br />
  It seems, that I need to set the release tracking policy. Can this be configured in the xml config file, or does it need to be set in code ? Can the release tracking policy be set on a per-component basis ? </p>