如何打电话到我的WCF服务异步? [英] How to make a call to my WCF service asynchronous?

查看:163
本文介绍了如何打电话到我的WCF服务异步?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我从一个窗口服务调用WCF服务。

I have a WCF service that I call from a windows service.

WCF服务运行SSIS包,该包可能需要一段时间才能完成,我不希望我的Windows服务不得不等着它完成。

The WCF service runs a SSIS package, and that package can take a while to complete and I don't want my windows service to have to wait around for it to finish.

我怎样才能让我的WCF服务调用异步? (或者是异步的默认?)

How can I make my WCF service call asynchronous? (or is it asynchronous by default?)

推荐答案

您所有的需求,将在下面的文章从MSDN满足:

All your needs will be satisfied in the following articles from MSDN:

实现一个异步服务操作

调用WCF服务异步

设计服务合同

这篇关于如何打电话到我的WCF服务异步?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆