Exemple #1
0
     private void FixupLoginCredential(LoginCredential previousValue)
     {
         if (IsDeserializing)
         {
             return;
         }
 
         if (ChangeTracker.ChangeTrackingEnabled)
         {
             if (ChangeTracker.OriginalValues.ContainsKey("LoginCredential")
                 && (ChangeTracker.OriginalValues["LoginCredential"] == LoginCredential))
             {
                 ChangeTracker.OriginalValues.Remove("LoginCredential");
             }
             else
             {
                 ChangeTracker.RecordOriginalValue("LoginCredential", previousValue);
             }
             if (LoginCredential != null && !LoginCredential.ChangeTracker.ChangeTrackingEnabled)
             {
                 LoginCredential.StartTracking();
             }
             FixupLoginCredentialKeys();
         }
     }
Exemple #2
0
     private void FixupLoginCredential(LoginCredential previousValue)
     {
         if (IsDeserializing)
         {
             return;
         }
 
         if (ChangeTracker.ChangeTrackingEnabled)
         {
             if (ChangeTracker.OriginalValues.ContainsKey("LoginCredential")
                 && (ChangeTracker.OriginalValues["LoginCredential"] == LoginCredential))
             {
                 ChangeTracker.OriginalValues.Remove("LoginCredential");
             }
             else
             {
                 ChangeTracker.RecordOriginalValue("LoginCredential", previousValue);
             }
             if (LoginCredential != null && !LoginCredential.ChangeTracker.ChangeTrackingEnabled)
             {
                 LoginCredential.StartTracking();
             }
             FixupLoginCredentialKeys();
         }
     }