[英]FluorineFx solution to read response
Here is class to read response from netConnection.Call: 这是从netConnection.Call读取响应的类:
public class getCompleteParkOfUser : IPendingServiceCallback
{
public void ResultReceived(IPendingServiceCall call)
{
object result = call.Result;
MessageBox.Show("Server response: " + result);
ArrayCollection items = result as ArrayCollection;
foreach (object item in items)
{
MessageBox.Show("");
}
}
}
result is good: http://scr.hu/0tgp/6yxdi but result won't be saved as ArrayCollection: http://scr.hu/0tgp/ovghm In effect i can't read response. 结果是好的: http : //scr.hu/0tgp/6yxdi但结果不会保存为ArrayCollection: http ://scr.hu/0tgp/ovghm实际上,我无法读取响应。
Response/Request is AMF 响应/请求是AMF
Try this.. 尝试这个..
object item = call.Result;
IEnumerable enumerable = (IEnumerable)item;
foreach (object element in enumerable)
{
// do something with element
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.