Based on the documentation sample, the proxy is created like this:
IMyService helloWorldClient = ServiceProxy.Create<IMyService>(new
Uri("fabric:/MyApplication/MyHelloWorldService"));
string message = await helloWorldClient.HelloWorldAsync();
But providing I need to limit the max amount of response time I would normally create CancellationToken and pass it down to the call. Is there a way how to pass the token to proxy so it cancels waiting for the result from remote service?
As far I can tell, is not possible to do it passing a cancellation token to the calls, because it is just a proxy and it will only accept parameters for the methods you describe in your interfaces.
To accomplish what you want, Cancel an operation after a certain time, you have to configure the FabricTransportRemotingListenerSettings and set the OperationTimeout to the desired timeout. The default is 5 minutes.
You can also do this setting via TransportSettings in the service settings.xml.
The following link will show both examples of how to set FabricTransportRemotingListenerSettings or TransportSettings configurations. https://learn.microsoft.com/en-us/azure/service-fabric/service-fabric-reliable-services-secure-communication
The documentation does not show, but the parameter you have to set is: OperationTimeout
The same can be done for actors, see here, pay attention that for actors some settings are different.