/// <summary>
        /// Initializes a new instance of the AE.SharePoint.ListsContextCore.SharePointListsContext list with the specified
        /// HttpClient and default options.
        /// </summary>
        /// <param name="httpClient">The instance of HttpClient that used to access to SharePoint REST API.</param>
        public SharePointListsContext(HttpClient httpClient)
        {
            restApiClient     = new SharePointRestApiClient(httpClient);
            formDigestStorage = new FormDigestStorage(restApiClient);

            if (properties == null)
            {
                properties = GetPropertiesCreationInfo();
            }

            InitSharePointListProperties();
        }
Example #2
0
        /// <summary>
        /// Initializes a new instance of the AE.SharePoint.ListsContextCore.SharePoint list with the specified
        /// HttpClient and SharePoint list name.
        /// </summary>
        /// <param name="restApiClient">The instance of SharePointRestApiClient.</param>
        /// <param name="formDigestStorage"></param>
        /// <param name="converter"></param>
        /// <param name="context"></param>
        /// <param name="listName">The name of the SharePoint list, displayed at the SharePoint site.</param>
        internal SharePointList(
            SharePointRestApiClient restApiClient,
            FormDigestStorage formDigestStorage,
            IConverter converter,
            SharePointListsContext context,
            string listName) : base(listName)
        {
            this.restApiClient     = restApiClient;
            this.formDigestStorage = formDigestStorage;
            this.converter         = converter;
            this.context           = context;

            ResetParams();
        }