From the course: Azure Service Fabric for Developers

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Communication between Service Fabric services with remoting

Communication between Service Fabric services with remoting - Azure Tutorial

From the course: Azure Service Fabric for Developers

Start my 1-month free trial

Communication between Service Fabric services with remoting

- [Instructor] With the IProduct service interface in place let's go ahead and implement it in the product service. But first we have to reference the core project. So let's right click here and add the reference to the core project. I'm going to do that in the search project as well, add reference to the API core project. Excellent. Now let's open these products class because it's the service itself, and here I'm going to implement IProductsService. This will be the perfect place to implement data access, but in this course we're going to use sample data to keep things simple. So I'm going to return Task FromResult, true, a new product based on the ID and a Name. I'm going to use the ID as well as the name and null. Of course I have to cast this as bool, Product, and string. Perfect. And now let's get rid of this RunAsync method because we don't need it anymore. I'm just going to delete it. And here we need to…

Contents