コード例 #1
0
 /// <summary>
 /// Return a new Message
 /// </summary>
 /// <param name="ClientType">Client Type for this Log Message</param>
 /// <param name="InstanceId">InstanceId of the Client</param>
 /// <param name="Type">Type of the Message</param>
 /// <param name="Message">Messge Text</param>
 /// <returns>a new Instance of ClientEmulatorLogMessage</returns>
 public static ClientEmulatorLogMessage NewMessage(ClientEmulatorType ClientType, int InstanceId, MessageType MsgType, string Message)
 {
     ClientEmulatorLogMessage msg = new ClientEmulatorLogMessage();
     msg.ClientType = ClientType;
     msg.InstanceId = InstanceId;
     msg.MsgType = MsgType;
     msg.Message = Message;
     return msg;
 }
コード例 #2
0
        /// <summary>
        /// Return a new Message
        /// </summary>
        /// <param name="ClientType">Client Type for this Log Message</param>
        /// <param name="InstanceId">InstanceId of the Client</param>
        /// <param name="Type">Type of the Message</param>
        /// <param name="Message">Messge Text</param>
        /// <returns>a new Instance of ClientEmulatorLogMessage</returns>
        public static ClientEmulatorLogMessage NewMessage(ClientEmulatorType ClientType, int InstanceId, MessageType MsgType, string Message)
        {
            ClientEmulatorLogMessage msg = new ClientEmulatorLogMessage();

            msg.ClientType = ClientType;
            msg.InstanceId = InstanceId;
            msg.MsgType    = MsgType;
            msg.Message    = Message;
            return(msg);
        }
コード例 #3
0
 public static void Log(ClientEmulatorLogMessage Message)
 {
     //TODO: Add Multiple Logging Mechanismen
     Console.WriteLine("{0}\t{1}\t{2}\t{3}\t{4}",
                       DateTime.Now.ToString("HH:mm:ss:ffff"),
                       Message.ClientType.ToString(),
                       Message.InstanceId,
                       Message.MsgType.ToString(),
                       Message.Message.ToString()
                       );
 }
コード例 #4
0
        public static void Log(ClientEmulatorLogMessage Message)
        {
            //TODO: Add Multiple Logging Mechanismen
            Console.WriteLine("{0}\t{1}\t{2}\t{3}\t{4}",
                    DateTime.Now.ToString("HH:mm:ss:ffff"),
                    Message.ClientType.ToString(),
                    Message.InstanceId,
                    Message.MsgType.ToString(),
                    Message.Message.ToString()
                );

        }
コード例 #5
0
 public static void Log(ClientEmulatorType ClientType, int InstanceId, MessageType MsgType, string Message)
 {
     Log(ClientEmulatorLogMessage.NewMessage(ClientType, InstanceId, MsgType, Message));
 }
コード例 #6
0
 public static void Log(Emulators.CDKeyServerClientEmulator Emulator, MessageType MsgType, string Message)
 {
     Log(ClientEmulatorLogMessage.NewMessage(
             ClientEmulatorType.CDKeyServerClient, Emulator.InstanceId, MsgType, Message
             ));
 }