示例#1
0
 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 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;
     }
 }
示例#3
0
 public void OnSerializing(StreamingContext context)
 {
     //Grab the dependencies map to serialize if, if no other aspect has done it before
     this.mapForSerialization = ObjectAccessorsMap.GetForSerialization();
 }
 public void OnSerializing(StreamingContext context)
 {
     //Grab the dependencies map to serialize if, if no other aspect has done it before
     this.mapForSerialization = ObjectAccessorsMap.GetForSerialization();
 }