title: How to solve Cyclic Dependency
body: <pre><code>public class NotificationService: INotificationService{
  
      private ILogService _logService;
  
      public NotificationService(ILogService logService){
  
          _logService = logService;
  
      }
  
  }
  
  
  public class LogService: ILogService{
  
      private INotificationService _notificationService;
  
      public LogService(INotificationService notificationService){
  
      _notificationService = notificationService;
  
      }
  
  }
  </code></pre>
  
  <p>I came into a situation where two classes depends on each other. I am using Ninject. </p>
  
  <pre><code>Bind&lt;INotificationService&gt;().To&lt;NotificationService&gt;();
  Bind&lt;ILogService&gt;().To&lt;LogService&gt;();
  </code></pre>
  
  <p>The codes above are causing Cyclic Dependency.
  What is the proper way to solve this? Please share some codes.</p>