Beispiel #1
0
 public void Dispose()
 {
     if (prefetchingBehavior != null)
     {
         prefetchingBehavior.Dispose();
     }
 }
Beispiel #2
0
            public void Dispose()
            {
                WorkContext.StopWorkRude(); //make sure cancellation token is at "cancel" state
                WorkContext.Dispose();

                PrefetchingBehavior.Dispose();
                TransactionalStorage.Dispose();
            }
Beispiel #3
0
        public void Dispose()
        {
            Task task;

            while (activeTasks.TryDequeue(out task))
            {
                task.Wait();
            }

            prefetchingBehavior.Dispose();
        }
Beispiel #4
0
		public void RemovePrefetchingBehavior(PrefetchingBehavior prefetchingBehavior)
		{
			lock (this)
			{
				prefetchingBehaviors = new List<PrefetchingBehavior>(prefetchingBehaviors.Except(new[]
				{
					prefetchingBehavior
				}));

				prefetchingBehavior.Dispose();
			}
		}
Beispiel #5
0
 public override void Dispose()
 {
     store.Dispose();
     base.Dispose();
     prefetchingBehavior.Dispose();
 }
 public void Dispose()
 {
     prefetchingBehavior.Dispose();
 }
Beispiel #7
0
 public void Dispose()
 {
     WorkContext.Dispose();
     PrefetchingBehavior.Dispose();
     TransactionalStorage.Dispose();
 }