Exemple #1
0
        protected override async Task <bool> ShouldProcessDockerLog(DockerRunParams parameters, CancellationToken cancellationToken)
        {
            var latestLogEntry =
                await
                Mediator.Send(
                    new GetLatestByServiceAndContainerNamesRequest
            {
                ContainerName = parameters.ContainerName,
                ServiceName   = parameters.ServiceName
            },
                    cancellationToken);

            return(parameters.EventDate > latestLogEntry);
        }
 protected abstract Task <bool> ShouldProcessDockerLog(DockerRunParams parameters, CancellationToken cancellationToken);
 protected override Task <bool> ShouldProcessDockerLog(DockerRunParams parameters, CancellationToken cancellationToken)
 {
     return(Task.FromResult(true));
 }