public SharepointClient(SharepointClientParameters parameters)
        {
            _parameters = parameters;
            var credentials = new SharePointOnlineCredentials(parameters.User, parameters.Password.ToSecureString());

            _context = new ClientContext(parameters.Url)
            {
                RequestTimeout = parameters.RequestTimeout,
                Credentials    = credentials
            };

            _context.ExecuteQuery();
        }
        public SharepointClient(SharepointClientParameters parameters)
        {
            _parameters = parameters;
            var credentials = new SharePointOnlineCredentials(parameters.User, parameters.Password.ToSecureString());

            _context = new ClientContext(parameters.Url)
            {
                RequestTimeout = parameters.RequestTimeout,
                Credentials = credentials
            };

            _context.ExecuteQuery();
        }