Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ BuildCookieCollectionFromDomainMatches()

void System.Net.CookieContainer.BuildCookieCollectionFromDomainMatches ( Uri uri,
bool isSecure,
int port,
ref CookieCollection cookies,
List< string > domainAttribute,
bool matchOnlyPlainCookie )
inlineprivate

Definition at line 674 of file CookieContainer.cs.

675 {
676 for (int i = 0; i < domainAttribute.Count; i++)
677 {
678 PathList pathList;
680 {
681 pathList = (PathList)m_domainTable[domainAttribute[i]];
682 if (pathList == null)
683 {
684 continue;
685 }
686 }
688 {
689 SortedList list = pathList.List;
690 int count = list.Count;
691 for (int j = 0; j < count; j++)
692 {
693 string cookiePath = (string)list.GetKey(j);
694 if (PathMatch(uri.AbsolutePath, cookiePath))
695 {
696 CookieCollection cookieCollection = (CookieCollection)list.GetByIndex(j);
697 cookieCollection.TimeStamp(CookieCollection.Stamp.Set);
699 }
700 }
701 }
702 if (pathList.Count == 0)
703 {
705 {
707 }
708 }
709 }
710 }
virtual void Remove(object key)
static bool PathMatch(string requestPath, string cookiePath)
readonly Hashtable m_domainTable
void MergeUpdateCollections(ref CookieCollection destination, CookieCollection source, int port, bool isSecure, bool isPlainOnly)

References System.Uri.AbsolutePath, System.count, System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.list, System.Net.CookieContainer.m_domainTable, System.Net.CookieContainer.MergeUpdateCollections(), System.Net.CookieContainer.PathMatch(), System.Collections.Hashtable.Remove(), System.Collections.Generic.Dictionary< TKey, TValue >.SyncRoot, and System.Collections.Hashtable.SyncRoot.

Referenced by System.Net.CookieContainer.InternalGetCookies().