Exemplo n.º 1
0
        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();
            }
        }
Exemplo n.º 2
0
 /// <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);
 }
Exemplo n.º 3
0
 /// <remarks/>
 public void addAttachment1Async(string in0, long in1, RemoteAttachment in2, byte[] in3) {
     this.addAttachment1Async(in0, in1, in2, in3, null);
 }
Exemplo n.º 4
0
 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]));
 }
Exemplo n.º 5
0
 /// <remarks/>
 public void addAttachmentAsync(string in0, RemoteAttachment in1, byte[] in2) {
     this.addAttachmentAsync(in0, in1, in2, null);
 }