Domanda

I have a method on a WCF proxy which returns void. If the return was non-void, I'd need to call the corresponding End... method to get the result, but what if the return is void?

Eg:

    ModuleProxy.Instance.Controller.BeginSaveConfiguration(Module.Name, Proxy_EndSaveConfig, null);
    ...
}

private void Proxy_EndSaveConfig(IAsyncResult ar) {
    ModuleProxy.Instance.Controller.EndSaveConfiguration(ar);
}

I I just pass a null callback then never call EndSaveConfiguration, will the proxy hold on to something or end up in a weird state eventually?

È stato utile?

Soluzione

Normally your asynchronous request should time out. The default value it is 10 minutes. If you want to decrease it change the binding configuration for it to a lower value.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top