title: Simple Injector and Cookies
body: <p>How I can create instance for per-request lifescope with cookie's data as parameter?</p>
  
  <p>For example:</p>
  
  <pre><code>container.Register&lt;ISampleRepository&gt;(() =&gt; 
      new SampleRepository(
          container.GetInstance&lt;ApplicationDbContext&gt;(), 
          request.Cookie["Token"]));
  </code></pre>