public async Task <bool> DeleteResourcesAfterExperiment(Guid hostId)
        {
            Guard.Against.GuidNullOrDefault(hostId, nameof(hostId));

            var host = await _awsHostRepo.GetByIdAsync(hostId);

            Guard.Against.Null(host, nameof(host));

            host.ResourceDestroyedAt = DateTimeOffset.UtcNow;
            host.ResourceDestroyed   = false;

            await _awsHostRepo.UpdateAsync(host);

            return(await _awsResourceService.DeleteStack(host.DockerHost.StackResourceName, host.Credentials.Id));
        }
 /// <summary>
 /// Handles the specified request.
 /// </summary>
 /// <param name="request">The request.</param>
 /// <param name="cancellationToken">The cancellation token.</param>
 /// <returns>Task&lt;System.Boolean&gt;.</returns>
 public async Task <bool> Handle(AWSDeleteResourcesCommand request, CancellationToken cancellationToken)
 {
     return(await _awsResourcesService.DeleteStack(request.StackName, request.CredentialsId));
 }