/// <summary> /// Try get a scan target for the entity key specified. /// </summary> /// <param name="key"> /// The entity key. /// </param> /// <param name="entityScanTarget"> /// The entity scan target. /// </param> /// <returns> /// <c>true</c> if a scan target as been found for the entity key specified, otherwise <c>false</c>. /// </returns> public bool TryRemoveScanTarget(Key key, out EntityScanTarget entityScanTarget) { lock (this.syncRoot) { entityScanTarget = new EntityQueryScanTarget(this.entityScanResult.EntityType, this.entityScanResult, key, this.entityScanResult.ValueSink); } return(true); }
/// <summary> /// Try get a scan target for the entity key specified. /// </summary> /// <param name="key"> /// The entity key. /// </param> /// <param name="entityScanTarget"> /// The entity scan target. /// </param> /// <returns> /// <c>true</c> if a scan target as been found for the entity key specified, otherwise <c>false</c>. /// </returns> public bool TryRemoveScanTarget(Key key, out EntityScanTarget entityScanTarget) { lock (this.syncRoot) { entityScanTarget = new EntityQueryScanTarget(this.entityScanResult.EntityType, this.entityScanResult, key, this.entityScanResult.ValueSink); } return true; }