Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IntermediateCache{TObject, TKey}"/> class.
 /// </summary>
 public IntermediateCache()
 {
     _innnerCache = new ObservableCache <TObject, TKey>();
 }