2

I've upgraded my service fabric app to version 3, CreateServiceInstanceListeners method looks like this:

    protected override IEnumerable<ServiceInstanceListener> CreateServiceInstanceListeners()
    {
        return new[] { new ServiceReplicaListener(context => this.CreateServiceRemotingListener(context)) };
    }

Unfortunately CreateServiceRemotingListener method is no longer available. (I still have a using declared: "using Microsoft.ServiceFabric.Services.Remoting.Runtime;")

Does anyone know how I update my code for the new SF version?

Slicc
  • 3,217
  • 7
  • 35
  • 70

2 Answers2

7

Using

return this.CreateServiceRemotingReplicaListeners();

and

return this.CreateServiceRemotingInstanceListeners();

Seems to have fixed the problem.

Slicc
  • 3,217
  • 7
  • 35
  • 70
0
protected override IEnumerable<ServiceReplicaListener> CreateServiceReplicaListeners()
{
    return this.CreateServiceRemotingReplicaListeners();
}

from https://stackoverflow.com/a/46753002/2021224

Andrey Prokhorov
  • 890
  • 2
  • 13
  • 25