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 };
        }
示例#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();
 }
示例#4
0
 public SiteCreationRequestHelper()
 {
     _sharePoint = new SharePointHelper();
 }