Search code examples
azure-service-fabric

Lost CreateServiceRemotingListener when upgrading to version 3 of of service fabric


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?


Solution

  • Using

    return this.CreateServiceRemotingReplicaListeners();
    

    and

    return this.CreateServiceRemotingInstanceListeners();
    

    Seems to have fixed the problem.