System\ServiceModel\Security\Tokens\SecurityContextCookieSerializer.cs (24)
52reader.ReadFullStartElement(dictionary.SecurityContextSecurityToken, dictionary.EmptyString);
56if (reader.IsStartElement(dictionary.Version, dictionary.EmptyString))
60else if (reader.IsStartElement(dictionary.ContextId, dictionary.EmptyString))
64else if (reader.IsStartElement(dictionary.Id, dictionary.EmptyString))
68else if (reader.IsStartElement(dictionary.EffectiveTime, dictionary.EmptyString))
72else if (reader.IsStartElement(dictionary.ExpiryTime, dictionary.EmptyString))
76else if (reader.IsStartElement(dictionary.Key, dictionary.EmptyString))
80else if (reader.IsStartElement(dictionary.KeyGeneration, dictionary.EmptyString))
84else if (reader.IsStartElement(dictionary.KeyEffectiveTime, dictionary.EmptyString))
88else if (reader.IsStartElement(dictionary.KeyExpiryTime, dictionary.EmptyString))
92else if (reader.IsStartElement(dictionary.Identities, dictionary.EmptyString))
96else if (reader.IsStartElement(dictionary.ClaimSets, dictionary.EmptyString))
110else if (reader.IsStartElement(dictionary.IsCookieMode, dictionary.EmptyString))
168writer.WriteStartElement(dictionary.SecurityContextSecurityToken, dictionary.EmptyString);
169writer.WriteStartElement(dictionary.Version, dictionary.EmptyString);
173writer.WriteElementString(dictionary.Id, dictionary.EmptyString, id);
174XmlHelper.WriteElementStringAsUniqueId(writer, dictionary.ContextId, dictionary.EmptyString, contextId);
176writer.WriteStartElement(dictionary.Key, dictionary.EmptyString);
182XmlHelper.WriteElementStringAsUniqueId(writer, dictionary.KeyGeneration, dictionary.EmptyString, keyGeneration);
185XmlHelper.WriteElementContentAsInt64(writer, dictionary.EffectiveTime, dictionary.EmptyString, tokenEffectiveTime.ToUniversalTime().Ticks);
186XmlHelper.WriteElementContentAsInt64(writer, dictionary.ExpiryTime, dictionary.EmptyString, tokenExpirationTime.ToUniversalTime().Ticks);
187XmlHelper.WriteElementContentAsInt64(writer, dictionary.KeyEffectiveTime, dictionary.EmptyString, keyEffectiveTime.ToUniversalTime().Ticks);
188XmlHelper.WriteElementContentAsInt64(writer, dictionary.KeyExpiryTime, dictionary.EmptyString, keyExpirationTime.ToUniversalTime().Ticks);
201writer.WriteStartElement(dictionary.ClaimSets, dictionary.EmptyString);