如何使一个WCF客户端忽略回应?客户端、WCF

2023-09-06 07:39:33 作者:东风寄千愁

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

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

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

查找到的单向操作的。

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

[ServiceContract()]
interface ISomeService
{
    [OperationContract()]
    void DoSomething(object data);
}
Java与WCF交互 一 Java客户端调用WCF服务

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

解决方案

Look into one way operations.