I have this code that has a circular reference between Service1 and Service 2 and I am using VS2015 Code Map to find circular references but they do not seem to be showing up
I have selected Layout > Analyzers > Circular References Analyzer and according to the legend on the right it should be highlighted in red square boxes...
public interface IService1
{
void Dosometing1();
void Donothing();
}
public class Service1 : IService1
{
private readonly IService2 _service2;
public Service1(IService2 service2)
{
_service2 = service2;
}
public void Dosometing1(){}
public void Donothing()
{
_service2.Dosometing2();
}
}
public interface IService2
{
void Dosometing2();
}
public class Service2 : IService2
{
readonly IService1 _service1;
public Service2(IService1 service1)
{
_service1 = service1;
}
public void Dosometing2()
{
_service1.Donothing();
}
}