Getting error cannot convert from Fabric.StatelessServiceContext to Fabric.ServiceInitializationParameters while building Service Fabric Web Api

Viewed 832

I'm getting error while following this tutorial

cannot convert from 'System.Fabric.StatelessServiceContext' to 'System.Fabric.ServiceInitializationParameters' 

while trying to create the Service Fabric Web Api explained in it.

Specifically, I'm getting it in this next line:

 return new[] {
            new ServiceInstanceListener(initParams =>
            new OwinCommunicationListener("api",new Startup(),initParams) )
        };

I haven't tried much, since Azure's Service Fabric is pretty new stuff, so there isn't much out there in terms of other Web Api examples. The tutorial above itself is not even finished yet.

Has anyone got any ideas?

Thanks

2 Answers
Related