Ejemplo n.º 1
0
        internal static Stream DownloadStream <T>(
            this IKuduClient client,
            T remotePath,
            Func <T, string> encodeRemotePathFunc)
            where T : Path
        {
            if (client == null)
            {
                throw new ArgumentNullException(nameof(client));
            }

            if (remotePath == null)
            {
                throw new ArgumentNullException(nameof(remotePath));
            }

            if (encodeRemotePathFunc == null)
            {
                throw new ArgumentNullException(nameof(encodeRemotePathFunc));
            }

            return(client.HttpGetStream(
                       encodeRemotePathFunc(remotePath)));
        }