ToCSV() public method

public ToCSV ( ) : string
return string
		public void Send(SIPMonitorEvent monitorEvent)
		{
			try
			{
                if (monitorEvent != null && m_sendEvents)
				{
                    string monitorEventStr = monitorEvent.ToCSV();

                    //if (monitorEvent.Message != null && monitorEvent.Message.Length > 0)
                    //{
                    //    monitorEventStr = monitorEvent.ToCSV();
                    //}

                    if (monitorEventStr != null)
                    {
                        m_monitorClient.Send(Encoding.ASCII.GetBytes(monitorEventStr), monitorEventStr.Length, m_monitorEndPoint);
                    }
				}
			}
			catch(Exception excp)
			{
				logger.Error("Exception SIPMonitorEventWriter Send (SIPMonitorEvent). " + excp.Message);
			}
		}
 private void SendMonitorEventViaUDP(SIPMonitorEvent monitorEvent, string destinationSocket)
 {
     try
     {
         byte[] monitorEventBytes = Encoding.UTF8.GetBytes(monitorEvent.ToCSV());
         m_udpEventSender.Send(monitorEventBytes, monitorEventBytes.Length, IPSocket.ParseSocketString(destinationSocket));
     }
     catch (Exception excp)
     {
         logger.Error("Exception SendMonitorEventViaUDP. " + excp.Message);
     }
 }