title: Implementing Windsor, migrating and have questions
body: <p>I have recently implemented Windsor on a new MVC project(new to both) and am having trouble implementing a service with it.</p>
  
  <p>The service is a <a href="https://github.com/deeja/LinkedInDeveloperToolkit" rel="nofollow">small toolkit project for linkedin that uses c#</a>. In the sample provided the service can be set up like so:</p>
  
  <p>In App_Start/AuthConfig.cs I create a new instance of <code>linkedInOAuthClient</code>, the main object for using the toolkit.</p>
  
  <pre><code>LinkedInOAuthClient linkedInOAuthClient = new LinkedInOAuthClient(new CookieAccessTokenStorage(ConfigurationManager.AppSettings["apiSecret"]),
              new DotNetOpenAuthWebConsumer(ServiceDescriptions.Authenticate,
                  new InMemoryOAuthTokenManager(ConfigurationManager.AppSettings["apiKey"], ConfigurationManager.AppSettings["apiSecret"])));
  </code></pre>
  
  <p>I then set a static object <code>LinkedInService</code> that implements <code>ILinkedInService</code> to <code>linkedInOAuthClient</code></p>
  
  <pre><code>LinkedInServiceHelper.LinkedInService = linkedInOAuthClient;
  </code></pre>
  
  <p>Then in my controller</p>
  
  <pre><code>public ILinkedInService LinkedInService { get; set; }
  public HomeController(ILinkedInService linkedInService)
      {
          LinkedInService = linkedInService;
      }
  </code></pre>
  
  <p>in order to use the service.</p>
  
  <p><strong>My question is this: How I do migrate LinkedInService to use Windsor?</strong></p>
  
  <p>I have already registered LinkedInService as a facility and installed it in Windsor</p>
  
  <pre><code>public class LinkedInFacility : AbstractFacility
  {
      protected override void Init()
      {
  
          Kernel.Register(Component.For&lt;ILinkedInService&gt;()
                                   .ImplementedBy&lt;LinkedInOAuthClient&gt;().LifestyleTransient());
      }
  }
  </code></pre>
  
  <p>But I am at a loss as to how to implement <code>linkedInOAuthClient</code></p>
  
  <p>Any help?</p>