Esempio n. 1
0
 public ConcurrentLookupCache(TryLookup tryLookup)
     : this(tryLookup, null, new Dictionary <TKey, TValue>())
 {
 }
Esempio n. 2
0
 public ExternalLookupReactiveEntityCollection(IReactiveEntityCollection <string, TDefinitionEntity> local, TryLookup <IReactiveMetadata, string, TDefinitionEntity> lookupFunc, IReactiveMetadata external)
     : base(local, lookupFunc, external)
 {
 }
Esempio n. 3
0
 /// <summary>
 /// Creates a reactive entity collection wrapping a specified underlying collection and a fallback function.
 /// </summary>
 /// <param name="local">The underlying collection to use for lookups.</param>
 /// <param name="tryLookup">The fallback function to use in case lookup in the collection fails.</param>
 /// <param name="arg">The argument to pass to the fallback function (avoids a closure).</param>
 public CooperativeLookupReactiveEntityCollection(IReactiveEntityCollection <TKey, TValue> local, TryLookup <TArg, TKey, TValue> tryLookup, TArg arg)
 {
     _local     = local;
     _tryLookup = tryLookup;
     _arg       = arg;
 }