/// <summary>
 /// Populates the internal collection of registered
 /// <see cref="Scheme">protocol schemes</see>
 /// with the content of the map passed as a parameter.
 /// </summary>
 /// <param name="map">protocol schemes</param>
 public void SetItems(IDictionary <string, Apache.Http.Conn.Scheme.Scheme> map)
 {
     if (map == null)
     {
         return;
     }
     registeredSchemes.Clear();
     registeredSchemes.PutAll(map);
 }
 public virtual void Clear()
 {
     try
     {
         GetDb().PutLocalDocument(CookieLocalDocName, null);
     }
     catch (CouchbaseLiteException e)
     {
         Log.E(Log.TagSync, "Exception saving local doc", e);
         throw new RuntimeException(e);
     }
     // Clear cookies from local store
     cookies.Clear();
 }
 public override void Clear()
 {
     Lock.Lock();
     try
     {
         item2Index.Clear();
         indexSize = 0;
         object[] arr = new object[DefaultInitialCapacity];
         index2Item.Set(arr);
     }
     finally
     {
         Lock.Unlock();
     }
 }
示例#4
0
 /// <summary>
 /// Remove all entries
 /// </summary>
 public void Clear()
 {
     map.Clear();
 }
示例#5
0
 /// <summary>Clear the cache</summary>
 public static void Clear()
 {
     userToNetgroupsMap.Clear();
 }
示例#6
0
 public virtual void ClearCache()
 {
     nmTokens.Clear();
 }