Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SourceCache{TObject, TKey}"/> class.
 /// </summary>
 /// <param name="keySelector">The key selector.</param>
 /// <exception cref="System.ArgumentNullException">keySelector</exception>
 public SourceCache(Func <TObject, TKey> keySelector)
 {
     if (keySelector == null)
     {
         throw new ArgumentNullException(nameof(keySelector));
     }
     _innerCache = new ObservableCache <TObject, TKey>(keySelector);
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IntermediateCache{TObject, TKey}"/> class.
 /// </summary>
 /// <param name="source">The source.</param>
 /// <exception cref="System.ArgumentNullException">source</exception>
 public IntermediateCache(IObservable <IChangeSet <TObject, TKey> > source)
 {
     if (source == null)
     {
         throw new ArgumentNullException(nameof(source));
     }
     _innnerCache = new ObservableCache <TObject, TKey>(source);
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IntermediateCache{TObject, TKey}"/> class.
 /// </summary>
 public IntermediateCache()
 {
     _innnerCache = new ObservableCache <TObject, TKey>();
 }