protected override Task SendMessage(MemoryStream memoryStream, JsonSerializer serializer, object message, WebSocketSendAsync sendAsync, CancellationToken callCancelled) { var typedMessage = message as LogEventInfo; if (typedMessage != null) { message = new LogEventInfoFormatted(typedMessage); } return(base.SendMessage(memoryStream, serializer, message, sendAsync, callCancelled)); }
protected override Task SendMessage(MemoryStream memoryStream, JsonSerializer serializer, object message, WebSocketSendAsync sendAsync, CancellationToken callCancelled) { var typedMessage = message as LogEventInfo; if (typedMessage != null) { message = new LogEventInfoFormatted(typedMessage); } return base.SendMessage(memoryStream, serializer, message, sendAsync, callCancelled); }