ServiceStack OnDeserialized Equivalent
问题 I am deserialize a websocket message in real time. In the message (string of json) I receive there is a unix timestamp (long). As soon as each object is deserialized I need it to call a method ASAP so that I can capture the delay between the time the message was sent and received. With Json.NET that was simple I just added this method to my DataContract class: [OnDeserialized] private void OnDeserialized(StreamingContext context) { Timestamp = DateTimeOffset.FromUnixTimeMilliseconds