Can you create an ITracingService?

拜拜、爱过 提交于 2019-12-24 06:34:51

问题


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:


You implement the ITracingService interface on a class.

public class NullCrmTracingService : ITracingService
{
    public void Trace(string format, params object[] args)
    {
        //do nothing
    }
}


来源:https://stackoverflow.com/questions/42442916/can-you-create-an-itracingservice

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!