title: How to Register these class In Autofac
body: <p>I am using autofac as Ioc Container.
  I have Three Classes:</p>
  
  <pre><code>class Service
  {
       public Service(Repository rep,UnitOfWork context){}
  
  }
  
  Class Repository
  {
       public Repository(UnitOfWork context){}
  }
  
  class UnitOfWork{}
  </code></pre>
  
  <p>the Service  and Repository  need the same instance of UnitOfWork</p>
  
  <p>How to do that?
  and   How to wirte it in XmlConfiguration</p>