Esempio n. 1
0
		public void Dispose(Guid collectionID)
		{
			var enumerator = CollectionsCache.GetCollection(collectionID) as IDisposable;
			if (enumerator != null)
				enumerator.Dispose();

			CollectionsCache.DeleteCollection(collectionID);
		}
Esempio n. 2
0
		public List<Object> LoadWhole(Guid collectionID)
		{
			var list = new List<Object>();
			
			var enumerator = CollectionsCache.GetCollection(collectionID);
			while (enumerator.MoveNext())
				list.Add(enumerator.Current);

			CollectionsCache.DeleteCollection(collectionID);

			return list;
		}
Esempio n. 3
0
		public CollectionItemEntity Next(Guid collectionID)
		{
			var enumerator = CollectionsCache.GetCollection(collectionID);

			var entity = new CollectionItemEntity
			{
				Success = enumerator.MoveNext(),
				Item = enumerator.Current,
			};

			return entity;
		}
Esempio n. 4
0
		public void Reset(Guid collectionID)
		{
			var enumerator = CollectionsCache.GetCollection(collectionID);
			enumerator.Reset();
		}