private void _EventRssHeader() { lock (this._lockRss) { try { if ((this._rss = this._RssRootAdd(this._parent._ci)) == null) { throw new ArgumentNullException(); } } #if DEBUG catch (Exception e) { if (this._parent.isLogEnable) { this._parent._ilog.LogError( string.Format( Properties.Resources.CoCNotifyProcessError, Properties.Resources.CoCNotifyDataRss, Properties.Resources.CoCNotifyDataOtherError, e.Message ) ); } #else catch (Exception) { #endif } } }
private string _EventRssToString(CoCNotifyHost host) { int count = 0; stRSS.RSSWriter rssRoot = null; CultureInfo ci = stNet.stWebServerUtil.HttpUtil.GetHttpClientLanguage(host.Language, this._parent._ci); try { if ((rssRoot = this._RssRootAdd(ci)) == null) { throw new ArgumentNullException(); } foreach (DataRow row in this._data.Rows) { RSSFeedItem itm = this._RssItemAdd(row, (count++), ci); if (itm != null) { rssRoot.Add(itm); } } return(rssRoot.WriteString(this._parent._ilog)); } #if DEBUG catch (Exception e) { if (this._parent.isLogEnable) { this._parent._ilog.LogError( string.Format( Properties.Resources.CoCNotifyProcessError, Properties.Resources.CoCNotifyDataRss, Properties.Resources.CoCNotifyDataOtherError, e.Message ) ); } #else catch (Exception) { #endif } return(this._rssString); }