コード例 #1
0
ファイル: Confluence.cs プロジェクト: logtcn/greenshot
		public void addAttachment(long pageId, string mime, string comment, string filename, IBinaryContainer image) {
			checkCredentials();
			RemoteAttachment attachment = new RemoteAttachment();
			// Comment is ignored, see: http://jira.atlassian.com/browse/CONF-9395
			attachment.comment = comment;
			attachment.fileName = filename;
			attachment.contentType = mime;
			confluence.addAttachment(credentials, pageId, attachment, image.ToByteArray());
		}
コード例 #2
0
ファイル: Reference.cs プロジェクト: logtcn/greenshot
 /// <remarks/>
 public void addAttachment1Async(string in0, RemoteAttachment in1, byte[] in2, object userState) {
     if ((this.addAttachment1OperationCompleted == null)) {
         this.addAttachment1OperationCompleted = new System.Threading.SendOrPostCallback(this.OnaddAttachment1OperationCompleted);
     }
     this.InvokeAsync("addAttachment1", new object[] {
                 in0,
                 in1,
                 in2}, this.addAttachment1OperationCompleted, userState);
 }
コード例 #3
0
ファイル: Reference.cs プロジェクト: logtcn/greenshot
 public RemoteAttachment addAttachment(string in0, RemoteAttachment in1, [System.Xml.Serialization.SoapElementAttribute(DataType="base64Binary")] byte[] in2) {
     object[] results = this.Invoke("addAttachment1", new object[] {
                 in0,
                 in1,
                 in2});
     return ((RemoteAttachment)(results[0]));
 }
コード例 #4
0
ファイル: Reference.cs プロジェクト: logtcn/greenshot
 /// <remarks/>
 public void addAttachment1Async(string in0, RemoteAttachment in1, byte[] in2) {
     this.addAttachment1Async(in0, in1, in2, null);
 }
コード例 #5
0
ファイル: Reference.cs プロジェクト: logtcn/greenshot
 /// <remarks/>
 public void addAttachmentAsync(string in0, long in1, RemoteAttachment in2, byte[] in3) {
     this.addAttachmentAsync(in0, in1, in2, in3, null);
 }