anerjan / protobuf-net

Automatically exported from code.google.com/p/protobuf-net
Other
0 stars 0 forks source link

Feature Request: Support context data in serialization callbacks #189

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
One feature of the standard .NET serializers is the ability to assign context 
information into StreamingContext objects which then exposes it to the 
serialization callbacks, such as [OnDeserializing] handlers.

This feature would be quite handy when porting code to protobuf-net.  The 
StreamingContext API itself isn't what's interesting here, just the ability to 
pass some context data to ProtoAfterDeserialization, for example.  That feature 
would save me some gross thread-static global messyness!

Original issue reported on code.google.com by cold...@gmail.com on 18 Jun 2011 at 2:58

GoogleCodeExporter commented 9 years ago
Added in r412

Original comment by marc.gravell on 20 Jun 2011 at 7:05