title: Dependency Resolver using unity for singleton class
body: <p>I am having an ILogger interface and Logger class(which is singleton) implements ILogger interface. I wanted to register this dependency using unity container. Could you please help me out.</p>
  
  <pre><code>public class Logger: ILogger
  {
   private static readonly Lazy&lt;Logger&gt; instance = new Lazy&lt;Logger&gt;(()=&gt; new Logger());
   public static Logger Instance{get{return instance.Value;}}
   private Logger(){}
   public void LogEvent(){}
  }
  </code></pre>