UploadWorkbooks.AttemptUploadSingleFile C# (CSharp) Method

AttemptUploadSingleFile() private method

private AttemptUploadSingleFile ( string thisFilePath, string projectIdForUploads, CredentialManager, dbCredentials, WorkbookPublishSettings, publishSettings ) : bool
thisFilePath string
projectIdForUploads string
dbCredentials CredentialManager, If not NULL, then these are the DB credentials we want to associate with the content we are uploading
publishSettings WorkbookPublishSettings, Workbook publish settings (e.g. whether to show tabs in vizs)
return bool
    private bool AttemptUploadSingleFile(
        string thisFilePath, 
        string projectIdForUploads,
        CredentialManager.Credential dbCredentials,
        WorkbookPublishSettings publishSettings)
    {
        //Assume it's a file we should try to upload
        if (_remapWorkbookReferences)
        {
            return AttemptUploadSingleFile_ReferencesRemapped(thisFilePath, projectIdForUploads, dbCredentials, publishSettings);
        }
        else
        {
            return AttemptUploadSingleFile_Inner(thisFilePath, projectIdForUploads, dbCredentials, publishSettings);
        }
    }