I have a Stateful Service called by a Stateless service, in .Net Standard Asp.net Core 2.0 running on Visual Studio 15.4. I can\'t make the Service Remoting V2 work.
The
In your stateful service, in method CreateServiceReplicaListeners
, use this code:
protected override IEnumerable CreateServiceReplicaListeners()
{
return this.CreateServiceRemotingReplicaListeners();
}
And in the file that defines your remoting service interface, add this:
[assembly: FabricTransportServiceRemotingProvider(RemotingListener = RemotingListener.V2Listener, RemotingClient = RemotingClient.V2Client)]
(for example, just below the using
namespaces list.)
Add the endpoint:
And rebuild the client.