FHSSpiritDataControl.DataControlNews.addComment C# (CSharp) Method

addComment() public method

public addComment ( string strComments, int nCurrentMessageID ) : void
strComments string
nCurrentMessageID int
return void
        public void addComment(string strComments, int nCurrentMessageID)
        {
            try
            {
                this.m_UriDataSource = new Uri(this.m_del_GetUIR() + this.m_strCommentPostFix);

                HttpWebRequest httpWebRequest = (HttpWebRequest)HttpWebRequest.Create(this.m_UriDataSource);
                httpWebRequest.Method = "PUT";
                httpWebRequest.Accept = "application/json";
                httpWebRequest.ContentType = "application/json";

                this.m_strNewComment = strComments;
                this.m_nNewMessageID = nCurrentMessageID;
                this.m_strFHSID      = this.m_del_GetFHSID();

                var result = (IAsyncResult)httpWebRequest.BeginGetRequestStream(new AsyncCallback(GetRequestStreamCallback), httpWebRequest);
            }
            catch (Exception ex)
            {
                this.m_del_ErrorMessage(ex.Message);
            }
        }