public SiteCreationRequestListPoller(SharePointHelper sharePoint, int requestId, string listName)
        {
            _sharePoint = sharePoint;

            Debug.Assert(requestId > 0);
            _requestId = requestId;

            _siteRequestList = _sharePoint.RootWeb.Lists.GetByTitle(listName);
            _sharePoint.ClientContext.Load(_siteRequestList);
            _sharePoint.ClientContext.ExecuteQuery();

            _pollResult = new PollingResult { ProvisioningRequestStatus = ProvisioningRequestStatus.Pending };
        }
Esempio n. 2
0
        public SiteCreationRequestListPoller(SharePointHelper sharePoint, int requestId, string listName)
        {
            _sharePoint = sharePoint;

            Debug.Assert(requestId > 0);
            _requestId = requestId;

            _siteRequestList = _sharePoint.RootWeb.Lists.GetByTitle(listName);
            _sharePoint.ClientContext.Load(_siteRequestList);
            _sharePoint.ClientContext.ExecuteQuery();

            _pollResult = new PollingResult {
                ProvisioningRequestStatus = ProvisioningRequestStatus.Pending
            };
        }
 public SiteCreationRequestHelper()
 {
     _sharePoint = new SharePointHelper();
 }
Esempio n. 4
0
 public SiteCreationRequestHelper()
 {
     _sharePoint = new SharePointHelper();
 }