【问题标题】:Getting the location of execution of a WCF Service获取 WCF 服务的执行位置
【发布时间】:2010-04-01 19:46:56
【问题描述】:

我有一个负责编写日志文件的 WCF 服务。我想写一个相对于我的 WCF 服务位置的日志文件。此服务没有可用的 HttpContext。因此,我无法使用 HttpContext.Current.Server.MapPath。

如何获取 WCF 服务运行的位置以便创建日志文件?

【问题讨论】:

    标签: c# wcf


    【解决方案1】:

    【讨论】:

      【解决方案2】:

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-02-18
        • 2013-01-19
        • 2013-03-14
        相关资源
        最近更新 更多