Ejemplo n.º 1
0
        // Docker container names: only [a-zA-Z0-9][a-zA-Z0-9_.-] are allowed. It is also case sensitive
        protected override bool EqualsInternal(ContainerInstance instance)
        {
            if (instance is DockerContainerInstance other)
            {
                // the id can be a partial on a container
                return(String.Equals(Id, other.Id, StringComparison.Ordinal) ||
                       Id.StartsWith(other.Id, StringComparison.Ordinal) ||
                       other.Id.StartsWith(Id, StringComparison.Ordinal));
            }

            return(false);
        }
Ejemplo n.º 2
0
 protected abstract bool EqualsInternal(ContainerInstance instance);