How to pass parameter to a class whose dependencies are wired through IoC container?
<p>I have a class that works with a network via multiple resources. Its constructor receives arguments that are resolved at runtime by IoC container (StructureMap):</p>

<pre><code>public NetworkWorker(IRetryService retryService, ILog log)
    { ... }
</code></pre>

<p>What I need is to control the number of resources this class uses on a use-case level - for example, client A need NetworkWorker instance that allows only one operation at a time, while client B need 10 ops at a time. <br />
Currently this number is hardcoded in the constructor. The only way I see is to add a method <code>void Configure(int resourceCount)</code> that each client of NetworkWorker would call with a different value. <br />Or may be there's a better way I don't see? <br />
This class can do different things, but number of resources is required for every method call (<code>Get/Send/etc</code> methods).
<br />P.S. is this a known technique (with a <code>Configure</code> method)? If it is, what's the name for it? smth like 'two-step initialization'?</p>