You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Zero/ZeroLevel.Logger/ProxySample/LogMessage.cs

25 lines
615 B

using ZeroLevel.Logging;
using ZeroLevel.Services.Serialization;
namespace ZeroLevel.Logger.ProxySample
{
public class LogMessage
: IBinarySerializable
{
public LogLevel Level { get; set; }
public string Message { get; set; }
public void Deserialize(IBinaryReader reader)
{
this.Level = (LogLevel)reader.ReadInt32();
this.Message = reader.ReadString();
}
public void Serialize(IBinaryWriter writer)
{
writer.WriteInt32((int)this.Level);
writer.WriteString(this.Message);
}
}
}

Powered by TurnKey Linux.