Esempio n. 1
0
		private static void SetVersionInfo(Artifact artifact, Proxy.UploaderRef.Uploader uploader, int version)
		{
			try
			{
				artifact.versionLabel = uploader.GetDocumentVersionString(artifact.uri.OriginalString, version);
				artifact.versionNumber = version;
			}
			catch (System.Exception ex)
			{
				Logger.LogError("Document library may have versioning disabled: Artifact ID = " + artifact.Id);
				Logger.LogError(ex);
				artifact.versionLabel = "1.0";
				artifact.versionNumber = 0;
			}
		}