public void Stop() { if (shutting_down) { return; } shutting_down = true; log.Info(Resources.Agent_ShuttingDown_Message); dropletManager.ForAllInstances((instance) => { if (false == instance.IsCrashed) { instance.DeaShutdown(); StopDroplet(instance); } }); TakeSnapshot(); messagingProvider.Dispose(); log.Info(Resources.Agent_Shutdown_Message); }
public Task StopAsync(CancellationToken cancellationToken) { _mqttProvider.Dispose(); return(Task.CompletedTask); }