我有一个 WCF REST 服务,它必须以其中一种方法提供视频。界面如下所示(我没有提供实现,因为问题出在此处)。
[ContentType]
被识别,但我得到一个System.Net.Mime.ContentType is a type but is used like a variable
.
请帮忙!我不知道该怎么做
public interface MyService
{
//stream video from camera
[WebGet(ContentType("video/x-msvideo"), UriTemplate = "video/preview")]
[OperationContract]
Bitmap VideoPreview();
}