Skip to Content
Hands-On Azure for Developers
book

Hands-On Azure for Developers

by Kamil Mrzygłód
November 2018
Intermediate to advanced
606 pages
15h 7m
English
Packt Publishing
Content preview from Hands-On Azure for Developers

Creating an actor's client

To create a client, we will use the most traditional Console Application. Once more, click on File | New project and search for it or just right-click on the solution and click on Add | New project. You will have to add two more things before we write some code:

  • Add a reference to our .Interfaces project as we have to know which methods we would like to call
  • Install the Microsoft.ServiceFabric.Actors package

We will write a simple application that calls our actor, fetches the current count value, and updates it. The following shows my example code:

using System;using System.Threading;using System.Threading.Tasks;using Microsoft.ServiceFabric.Actors;using Microsoft.ServiceFabric.Actors.Client;using ReliableActor.Interfaces; ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Implementing Azure: Putting Modern DevOps to Use

Implementing Azure: Putting Modern DevOps to Use

Florian Klaffenbach, Oliver Michalski, Markus Klein, Mohamed Wali

Publisher Resources

ISBN: 9781789340624Supplemental Content