Пример #1
0
 public OpenDocumentSensitivePrioritizedPrototype(OpenDocumentSensitivePrioritizer prioritizer,
                                                  IFuturePrototype prototype, IFuture openDocumentFuture)
 {
     this.prioritizer        = prioritizer;
     this.prototype          = prototype;
     this.openDocumentFuture = openDocumentFuture;
 }
Пример #2
0
		public CachePackage()
		{
			this.identifier = "root";
			this.Flush();
			this.openSourceDocumentCache = new SizeSensitiveCache("openDocumentCache" + this.suffix);
			this.openDocumentPrioritizer = new OpenDocumentSensitivePrioritizer(this.openSourceDocumentCache);
			this.diskCache = new DiskCache();
		}
		public OpenDocumentSensitivePrioritizedFuture(OpenDocumentSensitivePrioritizer prioritizer, IFuture future, IFuture openDocumentFuture)
		{
			this.prioritizer = prioritizer;
			this.future = future;
			this.openDocumentFuture = openDocumentFuture;
			object obj;
			Monitor.Enter(obj = OpenDocumentSensitivePrioritizedFuture.nextIdentityMutex);
			try
			{
				this._identity = OpenDocumentSensitivePrioritizedFuture.nextIdentity;
				OpenDocumentSensitivePrioritizedFuture.nextIdentity++;
			}
			finally
			{
				Monitor.Exit(obj);
			}
		}
		public OpenDocumentSensitivePrioritizedPrototype(OpenDocumentSensitivePrioritizer prioritizer, IFuturePrototype prototype, IFuture openDocumentFuture)
		{
			this.prioritizer = prioritizer;
			this.prototype = prototype;
			this.openDocumentFuture = openDocumentFuture;
		}