title: Ninject binding at runtime
body: <p>I am looking at a certain scenario in an application that i am currently working on</p>
  
  <p>I want an Admin officer to be able to change system wide settings in an application. </p>
  
  <pre><code>public class ApplicationSettings
  {
   //bla bla bla
  
   }
  </code></pre>
  
  <p>At startUp, I have the following binding</p>
  
  <pre><code>public static void RegisterServices(IKernel kernel)
  {
    kernel.Bind&lt;ApplicationSettings&gt;().ToSelf().InSingletonScope();
  }
  </code></pre>
  
  <p>All is well and Good as I understand that the same instance of the application settings will be served for as long as the kernel is active</p>
  
  <p>My question is this. What if I have to change the applicationsettings at runtime. And I want to automaticcally change the value of the ApplicationSettings instance in the kernel</p>
  
  <p>Will it be possible to do something like this</p>
  
  <pre><code>public void ChangeSettings(IKernel kernel, ApplicationSettings setting)
  {
     var setting = kernel.Get&lt;ApplicationSettings&gt;();
     //change the values of the instance
  }
  </code></pre>
  
  <p>Question, How do i update the kernel binding so that subsequent references to the singleton instance will refer to the newly modified version</p>
  
  <p>Thanks</p>