根据Service Fabric文档(
https://azure.microsoft.com/en-us/documentation/articles/service-fabric-reliable-actors-introduction/),以这种方式创建一个actor代理:
ActorId actorId = ActorId.NewId(); IMyActor myActor = ActorProxy.Create<IMyActor>(actorId,new Uri("fabric:/MyApp/MyActorService")); await myActor.DoWorkAsync();
好的,这可以工作并连接到我的本地群集.但我无法弄清楚如何创建远程集群的代理? (我有一个三节点集群,IP为10.0.10.10,10.0.11.10,10.0.12.10.)
我还尝试使用ServicePartitionResolver,这里解释了这个:https://azure.microsoft.com/en-us/documentation/articles/service-fabric-reliable-services-communication/,但没有成功.