Beispiel #1
0
 public SearchIndex(IRecordSearchComposition <TMain, TSearch> composition, Lazy <Task <IEncryptor> > encryptor, long partitionId)
 {
     _encryptor   = encryptor ?? new Lazy <Task <IEncryptor> >(() => Task.FromResult((IEncryptor)null));
     _partitionId = partitionId;
     _composition = composition;
 }
Beispiel #2
0
 public ISearchIndex <TMain, TSearch> Index <TMain, TSearch>(IRecordSearchComposition <TMain, TSearch> composition)
 {
     return(new SearchIndex <TMain, TSearch>(composition, _encryptor, _partitionId));
 }