如何使一个WCF客户端忽略回应? [英] How to make a WCF client ignore the response?

查看:122
本文介绍了如何使一个WCF客户端忽略回应?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有相同的签名合同的动作< T> 委托:

  [的ServiceContract()]
接口ISomeService
{
    [OperationContract的()]
    无效DoSomething的(对象数据);
}
 

  1. 将客户端等待服务器端方法执行完成?
  2. 如果有,如何prevent呢?
  3. 我应该使用异步调用来实现我的目标是什么?
解决方案

查找到的单向操作的。

I have a contract in the same signature as an Action<T> delegate:

[ServiceContract()]
interface ISomeService
{
    [OperationContract()]
    void DoSomething(object data);
}

  1. Will the client wait for the server side method execution to finish?
  2. If yes, how to prevent this?
  3. Should I use async calls to achieve my goal?

解决方案

Look into one way operations.

这篇关于如何使一个WCF客户端忽略回应?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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