mirror of https://github.com/ogoun/Zero.git
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.
25 lines
615 B
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);
|
|
}
|
|
}
|
|
}
|