public void OnDeserialized(StreamingContext context) { //If dependencies map was serialized within this aspect, copy the data to global map if (this.mapForSerialization != null) { this.mapForSerialization.Restore(); this.mapForSerialization = null; } }
public void OnSerializing(StreamingContext context) { //Grab the dependencies map to serialize if, if no other aspect has done it before this.mapForSerialization = ObjectAccessorsMap.GetForSerialization(); }