异步服务操作

编程入门 行业动态 更新时间:2024-10-28 11:25:41
本文介绍了异步服务操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在开发一个现有的Silverlight项目并使用大量的WCF。问题是我不知道开头的故事。假设我创建了一个WCF,然后向项目添加服务引用。我发现有很多代码,比如

System.IAsyncResult BeginGetCurrentDateTime(System.AsyncCallback callback,object asyncState);

我的问题是系统如何生成这些代码中的代码? silverlight 会自动 生成这些异步代码吗?

解决方案

您好HZ.USA,

如何添加您的WCF服务参考以及您添加此服务参考的项目?

我创建了一个示例WCF服务应用程序,然后将其添加到右键单击我的Silverlight应用程序 - >添加 - >服务参考。它将参考此服务,如下面的屏幕截图所示。我没有找到任何关于"System.IAsyncResult BeginGetCurrentDateTime"的代码。在整个解决方案中。

请分享详细步骤,说明您如何操作以帮助我们重现此问题。

最好的问候, Weiwei

I am working on an existing silverlight project and use a lot of WCF. The thing is that I don't know the story of the beginning. Say I create a WCF then add service reference to a project. I find that there are many code such as

System.IAsyncResult BeginGetCurrentDateTime(System.AsyncCallback callback, object asyncState);

My question is how the system generate these code underhood? Does the silverlight automaticallygenerate these async code?

解决方案

Hi HZ.USA,

How do you add your WCF Service reference and what project do you add this service reference?

I create a sample WCF Service application and then add it into my Silverlight application by right-click -> Add -> Service Reference. It will reference this service as following screenshot shows. I don't find any code about "System.IAsyncResult BeginGetCurrentDateTime" in entire solution.

Please share the detailed steps that how do you operated to help us reproduce this issue.

Best Regards, Weiwei

更多推荐

异步服务操作

本文发布于:2023-10-30 03:03:03,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1541573.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:操作

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!