Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of this class.
 /// </summary>
 /// <param name="info">The <see cref="SerializationInfo"/>.</param>
 /// <param name="context">The <see cref="StreamingContext"/>.</param>
 protected Entity(SerializationInfo info, StreamingContext context)
 {
     using (Session.OpenSystemLogicOnlyRegion()) {
         changeVersionOnSetAttempt = ShouldChangeOnSetAttempt();
         DeserializationContext.Demand().SetObjectData(this, info, context);
     }
 }
Exemplo n.º 2
0
 void IDeserializationCallback.OnDeserialization(object sender)
 {
     using (Session.OpenSystemLogicOnlyRegion()) {
         DeserializationContext.Demand().OnDeserialization();
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Structure"/> class.
 /// </summary>
 /// <param name="info">The info.</param>
 /// <param name="context">The context.</param>
 protected Structure(SerializationInfo info, StreamingContext context)
 {
     DeserializationContext.Demand().SetObjectData(this, info, context);
 }