protected void InitializeProject(RestApiRequestor requestor) { // Get all of the information we'll need to compose our publishing requests, and cache it for future publishing attempts. if (String.IsNullOrWhiteSpace(siteId)) { siteId = requestor.GetSiteId(); } if (String.IsNullOrWhiteSpace(projectId)) { projectId = requestor.GetOrCreateProject(logsharkRequest.ProjectName, BuildProjectDescription()); } if (String.IsNullOrWhiteSpace(groupId)) { groupId = requestor.GetGroupId(LogsharkConstants.DEFAULT_PROJECT_PERMISSIONS_GROUP); } if (!hasSetProjectPermissions) { requestor.AddDefaultProjectPermissions(projectId, groupId, LogsharkConstants.DEFAULT_PROJECT_PERMISSIONS); hasSetProjectPermissions = true; } }