Detection of VM Migration on Public Cloud
This project is a WCF service which you can host on your Virtual Machine to identify if there the machine is migrating to new location.
-
Build the project and host it on IIS. For example, this service is hosted on http://localhost:58975/Detect.svc
-
Add the ServiceReference to your client module giving the URL of the hosted WCF.
Following are the modules which you can call from client module-
- setLandMark("google.com", "yahoo.com", "facebook.com") - Sets the landmark for which you want your service to ping.
- setPingCounter(counter) - pings the landmarks for counter no. of times.
- setThreshold(threshold factor) - sets the threshold factor.
- calculateAvgLatency() - Calculates the average latencies.
- calculateMinThreshold() - Calculates the minimum threshold latency
- calculateMaxThreshold() - Calculate the maximum threshold latency