Code Walkthrough - Bhushan-Jagtap-2013/AzureServiceFabricExamples GitHub Wiki

Initial boiler plate code

This code has four important things.

  • StatelessServiceContext - gives information about service environment
  • CreateServiceInstanceListeners - Open communication channel
  • RunAsync - Main executable code
  • CancellationToken - Token raise when SF wants to cancel the service.