如何在WCF呼叫

时间:2015-05-14 10:24:34

标签: c# android ios wcf

如何检测iOS或Android是否请求wcf调用?

我有以下WCF方法。

public Stream GetSmartLinkImage(string SmartLinkId)
{
        wmas_subsDataContext dc = new wmas_subsDataContext();
        string path = string.Empty;

        var fileRecord = from p in dc.Images where p.ImageTitle == "IMG0001" select p;

        if (fileRecord.Count() > 0)
        {
            path = ConfigurationManager.AppSettings["ImagesPath"].ToString() + "\\" + fileRecord.First().ImageName;
        }

        FileStream fs = File.OpenRead(path);

        return fs;
}

0 个答案:

没有答案