Beispiel #1
0
        /// <summary>
        /// Lookup/create a key set for a single key scheme.
        /// </summary>
        /// <param name="scheme"></param>
        /// <returns></returns>
        private DualKeySet NewKeysetFor(DualKeyScheme scheme)
        {
            IKeySet keys;

            if (!keySets.TryGetValue(scheme, out keys))
            {
                keys = new DualKeySet();

                keySets.Add(scheme, keys);
            }

            return (DualKeySet)keys;
        }
Beispiel #2
0
 public bool Equals(DualKeySet keyset)
 {
     return ProducerKeys.SequenceEqual(keyset.ProducerKeys) &&
            ConsumerKeys.SequenceEqual(keyset.ConsumerKeys);
 }