Beispiel #1
0
 /// <summary>
 /// <para>
 /// WriteMessage callback
 /// </para>
 /// </summary>
 /// <param name="channel"></param>
 /// <param name="message"></param>
 internal void WriteMessage(UInt32 channel, string message)
 {
     DebugHelper.WriteLogEx("Channel = {0} message = {1}", 0, channel, message);
     try
     {
         CimWriteMessage action = new CimWriteMessage(channel, message);
         this.FireNewActionEvent(action);
     }
     catch (Exception ex)
     {
         DebugHelper.WriteLogEx("{0}", 0, ex);
     }
 }
Beispiel #2
0
		internal void WriteMessage(uint channel, string message)
		{
			object[] objArray = new object[2];
			objArray[0] = channel;
			objArray[1] = message;
			DebugHelper.WriteLogEx("Channel = {0} message = {1}", 0, objArray);
			try
			{
				CimWriteMessage cimWriteMessage = new CimWriteMessage(channel, message);
				this.FireNewActionEvent(cimWriteMessage);
			}
			catch (Exception exception1)
			{
				Exception exception = exception1;
				object[] objArray1 = new object[1];
				objArray1[0] = exception;
				DebugHelper.WriteLogEx("{0}", 0, objArray1);
			}
		}