Exemple #1
0
 public Grouper AddGroupOwnerSource(IGroupOwnerSource ownerSource)
 {
     foreach (GroupStores store in ownerSource.GetSupportedGroupStores())
     {
         if (_ownerSources.ContainsKey(store))
         {
             throw new ArgumentException($"An owner source for {store} is already added.", nameof(ownerSource));
         }
         _ownerSources.Add(store, ownerSource);
     }
     return(this);
 }