title: Unity - resolving without resolve()
body: <p>I would like to just markup a property with an attribute [DoInjection] and have unity do the injection. I don't want to have to use prop = Unity.Resolve(type). Thats a pain and messy. Does unity provide attributes to do this or do I have to build my own?</p>
  
  <p>Edit: register in App.Main</p>
  
  <pre><code>ISessionFactory sf = new SessionFactory();
              container.RegisterType&lt;IRepository, CustomerRepository&gt;(new InjectionConstructor(sf.CurrentUoW));
              container.RegisterInstance&lt;IUnitOfWork&gt;(sf.CurrentUoW);
  </code></pre>
  
  <p>Using [Dependancy] on IUnitOfWork propery in ClassX other class but it's always null. Do I need to build ClassX instance using Unity to get this to work? It looks like I do have to. I don't like that. </p>