public void LogFileConversion(XDoc spaceManifest, RemoteAttachment fileInfo, string contentUrl) { string xpath = string.Format("file[@c.fileid='{0}']", fileInfo.id); XDoc fileXml = spaceManifest[xpath]; if(fileXml.IsEmpty) { spaceManifest.Start("file"); spaceManifest.Attr("c.fileid", fileInfo.id); spaceManifest.Attr("c.pageid", fileInfo.pageId); spaceManifest.Attr("c.filename", fileInfo.fileName); spaceManifest.Attr("c.filesize", fileInfo.fileSize); spaceManifest.Attr("c.mimetype", fileInfo.contentType); spaceManifest.Attr("c.path", Utils.GetUrlLocalUri(_confBaseUrl, fileInfo.url, false, true)); spaceManifest.Attr("mt.path", Utils.GetApiUrl(Utils.GetUrlLocalUri(_confBaseUrl, contentUrl, true, true))); spaceManifest.End(); } }
/// <remarks/> public void addAttachment1Async(string in0, long in1, RemoteAttachment in2, byte[] in3, object userState) { if ((this.addAttachment1OperationCompleted == null)) { this.addAttachment1OperationCompleted = new System.Threading.SendOrPostCallback(this.OnaddAttachment1OperationCompleted); } this.InvokeAsync("addAttachment1", new object[] { in0, in1, in2, in3}, this.addAttachment1OperationCompleted, userState); }
/// <remarks/> public void addAttachment1Async(string in0, long in1, RemoteAttachment in2, byte[] in3) { this.addAttachment1Async(in0, in1, in2, in3, null); }
public RemoteAttachment addAttachment(string in0, long in1, RemoteAttachment in2, [System.Xml.Serialization.SoapElementAttribute(DataType="base64Binary")] byte[] in3) { object[] results = this.Invoke("addAttachment1", new object[] { in0, in1, in2, in3}); return ((RemoteAttachment)(results[0])); }
/// <remarks/> public void addAttachmentAsync(string in0, RemoteAttachment in1, byte[] in2) { this.addAttachmentAsync(in0, in1, in2, null); }