예제 #1
0
        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);
        }
예제 #2
0
 public Task StopAsync(CancellationToken cancellationToken)
 {
     _mqttProvider.Dispose();
     return(Task.CompletedTask);
 }