title: AutoMapper: passing 2 elements to the resolution context
body: <p>I am using AutoMapper to retreive an Order object. For the price, I resolve using an extension method of the object and I need to pass in a <code>PriceType</code> and a <code>Markup</code> for the calculation.
  <br/>
  Currently, I have it working for just <code>PriceType</code></p>
  
  <pre><code>//in the mapping
      .ForMember(d =&gt; d.TotalPrice, opt =&gt; opt.ResolveUsing((src, dest, destMember, resContext) =&gt; dest.TotalPrice= src.UserTotalPrice((string)resContext.Items["Pricing"])))
  //pass in the variable
      var s = Mapper.Map&lt;Order, NewOrder&gt;(order, opts =&gt; opts.Items["Pricing"] = "A");
  </code></pre>
  
  <p>I need to pass in the markup</p>
  
  <pre><code>//in the mapping
      .ForMember(d =&gt; d.TotalPrice, opt =&gt; opt.ResolveUsing((src, dest, destMember, resContext) =&gt; dest.TotalPrice= src.UserTotalPrice((string)resContext.Items["Pricing"]),(decimal)resContext.Items["Markup"]))
  </code></pre>
  
  <p><strong>Question:</strong> How can I set 2 elements with passing it in?</p>
  
  <pre><code> var s = Mapper.Map&lt;Order, NewOrder&gt;(order, opts =&gt; opts.Items["Pricing"] = "A"**********missing code**************);
  </code></pre>