Example #1
0
 internal void SavedContentTokenDisposed(StringWriterSaveContentToken token)
 {
     savedContentTokens.Remove(token);
 }
Example #2
0
 /// <summary>
 /// Restores the saved content from the specified saved content token.
 /// </summary>
 /// <param name="token">The saved content token object.</param>
 public void RestoreContent(StringWriterSaveContentToken token)
 {
     Content = GetSavedContent(token);
 }
Example #3
0
 internal void SavedContentTokenCreated(StringWriterSaveContentToken token)
 {
     savedContentTokens.Add(token, Content);
 }
Example #4
0
 /// <summary>
 /// Gets the saved content from the specified saved content token.
 /// </summary>
 /// <param name="token">The saved content token object.</param>
 /// <returns>The saved string.</returns>
 public string GetSavedContent(StringWriterSaveContentToken token)
 {
     return(savedContentTokens[token]);
 }