Can you create an ITracingService?

2019-08-06 10:28发布

I have a Dynamics CRM plugin I'm trying to debug in Linqpad. I can reference my plugin assembly but it requires an ITracingService object. Can I create one and set its output location to the console?

1条回答
手持菜刀,她持情操
2楼-- · 2019-08-06 10:53

You implement the ITracingService interface on a class.

public class NullCrmTracingService : ITracingService
{
    public void Trace(string format, params object[] args)
    {
        //do nothing
    }
}
查看更多
登录 后发表回答