In the following scenario, I want to return only a string, because this is what the specification says, but for this I need to return a stream, and I just want to make sure that there are not too many threads for too long, The method looks like this:
[WebGet(BodyStyle = WebMessageBodyStyle.Bare,
RequestFormat = WebMessageFormat.Xml,
ResponseFormat = WebMessageFormat.Xml,
UriTemplate = "someuri/{parameter}")]
[OperationContract]
public Stream FooBar(string parameter)
{
byte[] bytes = Encoding.UTF8.GetBytes("some string");
return new MemoryStream(bytes);
}
Does anyone know when this resource will be released?
source
share