public async Task StopAsync() { Trace.TraceInformation("Yams WorkerRole is stopping"); RoleEnvironment.Changing -= RoleEnvironmentChanging; if (_yamsEntryPoint != null) { await _yamsEntryPoint.Stop(); } base.OnStop(); Trace.TraceInformation("Yams has stopped"); }
public void TestCleanup() { _yamsEntryPoint.Stop().Wait(); DeleteDirectory(_testDirPath); }