Beispiel #1
0
        private static void ValidateIncludedPaths(IEnumerable <ClientEncryptionIncludedPath> clientEncryptionIncludedPath)
        {
            List <string> includedPathsList = new List <string>();

            foreach (ClientEncryptionIncludedPath path in clientEncryptionIncludedPath)
            {
                PSClientEncryptionPolicy.ValidateClientEncryptionIncludedPath(path);
                if (includedPathsList.Contains(path.Path))
                {
                    throw new ArgumentException($"Duplicate Path({path.Path}) found.", nameof(clientEncryptionIncludedPath));
                }

                includedPathsList.Add(path.Path);
            }
        }