public static ReportMessage.Session.Event Create( ReportMessage.Session.Event.EventType type, string value, string name = null) { return(EventFactory.Create(type, value == null ? (byte[])null : Encoding.UTF8.GetBytes(value), name, (string)null)); }
public static ReportMessage.Session.Event Create( ReportMessage.Session.Event.EventType type, byte[] value = null, string name = null, string environment = null) { return(new ReportMessage.Session.Event() { type = (uint)type, name = name, value = value, environment = environment }); }