This is a complete end-to-end sample using the OneCompute Platform.
It estimates Pi by randomly picking numbers (x,y) within a square with -1 <= x,y <= 1 and estimating Pi from the fraction of points that are within the circle inscribed int the square.
Clone the OneComputeExamples repository. Open the PiEstimatorSample.sln solution in Visual Studio 2017 or 2019 and build it. Run one of the client console applications.
Shared client code that creates and submits the job for execution and monitors it during execution.
A .NET Framework console application that authenticates with Veracity and runs the PiSampler.
A .NET Core console application that authenticates with the OneCompute Service Registry using client credentials and runs the PiSampler. To run this application, a client secret must be obtained from the OneCompute Service Registry.
Contains the code that samples Pi and returns the results.
Common code shared between clients and cloud worker, in particular the data types representing input to and output from the calculations.