コード例 #1
0
ファイル: DirectEmailAction.cs プロジェクト: ZhouAnPing/Mail
        /// <summary>
        /// delete email content by email id.
        /// </summary>
        /// <param name="emailTypeId">email type id</param>
        /// <param name="emailName">email name</param>
        /// <returns>email id</returns>
        public String deleteDirectEmailId(String emailId)
        {
            if (logger.IsDebugEnabled)
            {
                logger.Debug("deleteDirectEmailId:emaemailIdilTypeId=" + emailId);
            }

            String result = "";

            IDRequest request = new IDRequest();
            try
            {
                request.id = emailId;
                IDResponse response = directEmailService.delete(request);

                result = response.message;

            }
            catch (System.Web.Services.Protocols.SoapException ex)
            {
                if (logger.IsDebugEnabled)
                {
                    logger.Debug("error happens in getting email type id, error is" + result);
                }
                throw new Exception(ex.Detail.InnerXml);
            }
            return result;
        }
コード例 #2
0
ファイル: Reference.cs プロジェクト: ZhouAnPing/Mail
 /// <remarks/>
 public void deleteAsync(IDRequest deleteRequest, object userState) {
     if ((this.deleteOperationCompleted == null)) {
         this.deleteOperationCompleted = new System.Threading.SendOrPostCallback(this.OndeleteOperationCompleted);
     }
     this.InvokeAsync("delete", new object[] {
                 deleteRequest}, this.deleteOperationCompleted, userState);
 }
コード例 #3
0
ファイル: Reference.cs プロジェクト: ZhouAnPing/Mail
 /// <remarks/>
 public void getByIdAsync(IDRequest getByIdRequest, object userState) {
     if ((this.getByIdOperationCompleted == null)) {
         this.getByIdOperationCompleted = new System.Threading.SendOrPostCallback(this.OngetByIdOperationCompleted);
     }
     this.InvokeAsync("getById", new object[] {
                 getByIdRequest}, this.getByIdOperationCompleted, userState);
 }
コード例 #4
0
ファイル: Reference.cs プロジェクト: ZhouAnPing/Mail
 /// <remarks/>
 public void deleteAsync(IDRequest deleteRequest) {
     this.deleteAsync(deleteRequest, null);
 }
コード例 #5
0
ファイル: Reference.cs プロジェクト: ZhouAnPing/Mail
 /// <remarks/>
 public void getByIdAsync(IDRequest getByIdRequest) {
     this.getByIdAsync(getByIdRequest, null);
 }